TSV and DRecord on Solaris

Hello,
Currently I am trying to monitor my Java RealTime application that runs with Sun Java RTS 2.2 on Solaris 10, using the TSV tool (that comes with Java RTS 2.2) and the DTrace utility.
The problem that I have is, that the "dmonitor" script (available under the <TSV_InstallDir>/bin directory), recommended to be used by the TSV documentation, will not work since the sched:::change-pri probe does not work. Please note that I have tried to use the drecord script as well, which also uses this DTrace probe, and it does not work either. (Please note that the dmonitor script only comes with the TSV delivered with Java RTS 2.2).
The message I get is : “... in action list: args[ ] may not be referenced because probe description sched:::change-pri matches an unstable set of probes”.
I have set the –x amin to the lowest in the dmonitor script (-x amin=Private/Private/Unknown) but the error stays.
Maybe also important to mention is, that I am starting the "dtrace" tool using "pfexec", like "pfexec dtrace ....". I have adapted the drecord and dmonitor tools for that.
For completeness, here's the dtrace script used by the dmonitor:
script='
BEGIN
   timeout = $1;
profile:::tick-1s
  this->count++;
profile-1s
/this->count >= timeout/
  exit(0);
sched:::on-cpu
/pid == $target && self->on_cpu == 0/
    printf("%d on-cpu %d %d %d\n",timestamp,tid,cpu,curthread->t_pri);
    self->on_cpu = 1;
sched:::off-cpu
/pid == $target && self->on_cpu == 1/
    printf("%d off-cpu %d \n",timestamp,tid);
    self->on_cpu = 0;
sched:::change-pri
/pid == $target/
    printf("%d change-pri %d %d\n",timestamp,args[0]->pr_lwpid,args[2]);
jrts$target:::thread-set-name
  printf("%d set-name %d %s\n",timestamp,(int)arg0,copyinstr(arg1,arg2));
jrts$target:::thread-start
  printf("%d set-name %d %s\n",timestamp,(int)arg0,copyinstr(arg4,arg5));
jrts$target:::user-event
    printf("%d user-event %d %d %d %s\n",timestamp,tid,cpu,curthread->t_pri,copyinstr(arg0,arg1));
'Once I remove the sched:::change-pri probe completelly, the rest works.
Thank you a lot in advance for any hints ;)
Best regards,
Sergiu Burian

Sergiu,
Thanks for the detailed post (my own copy of TSV was downrev and missing the very useful dmonitor script).
This is very puzzling. The error message means that either:
a) the probe did not exist when Dtrace was started; or
b) the clause matches more than one probe
and in both cases the argument array can not be typed so you can not use arg[n] syntax to access them.
There are a couple of possible work-arounds:
1. Be more specific with the probe. Trying editing the script to use sched:RT:rt_change_priority:change-pri
Of course if you want all the priority-change events then you need to produce additional clauses for the TS class as well. The full list of probes seems to be:
  986      sched           genunix                 thread_change_pri change-pri
1020      sched                TS                ts_change_priority change-pri
1021      sched                TS                          ts_yield change-pri
1022      sched                TS                         ts_wakeup change-pri
1023      sched                TS                        ts_trapret change-pri
1024      sched                TS                          ts_sleep change-pri
1025      sched                TS                         ts_setrun change-pri
1026      sched                TS                        ts_preempt change-pri
2192      sched                FX                fx_change_priority change-pri
2193      sched                FX                          fx_yield change-pri
2194      sched                FX                         fx_wakeup change-pri
2195      sched                FX                        fx_preempt change-pri
2214      sched                RT                rt_change_priority change-pri2. Change the script to use arg0, arg1, arg2 rather than arg[0], arg[1], arg[2] (this might entail some type casting - sorry not really my area)
I will see if I can find out anything which may have changed in this area.
Thanks,
David Holmes

Similar Messages

  • Fusion Middleware 11g Weblogic, forms and Reports in Solaris  11 zone

    Hi,
    Any one Installed Fusion Middleware 11g Weblogic, forms and Reports on Solaris 11 zone ??
    So Pls Let me know Weblogic and Fusion Middleware 11g versions which are working
    I try
    Weblogic 10.3.3 Installed 64 Bit Went OK
    Fusion Middleware 11g 11.1.1.2.0 Errors While Relink few items like frmbldr etc
    Then Fusion Middleware 11g Patchset5 11.1.1.6 Still Same Errors Relink few items like frmbldr etc
    Then Cconfig.sh failed at create domain
    Regards

    Hi Deepak,
    Just config.sh or config.cmd file and try to change the JDK with in and try to configure new domain from there.
    Regards,
    Kal

  • Metadevices and Upgrade from Solaris 2.6 to 8

    Hello,
    I want upgrade my current Solaris system from 2.6 to 8. My filesystem are mirrored metadevices including root partion. Are there any problems during upgrade? Did anybody recommend to detach metadevices and mirrors?
    Thanks in advance
    Ivette

    The wikipedia page on solaris http://en.wikipedia.org/wiki/Solaris_(operating_system) shows the changes in the system as newer versions came out. I'd highly suggest getting a test box and setting up Solaris 10 on it, and getting a feel for the new install and in particular, ZFS. It's been a number of years since I last used 2.6, but Solaris 10 is vastly better in many ways, including stability. With ZFS you also don't have to use fsck. The best features of Solaris 10 are the new ZFS file system, zones, snapshots, and the new services (rather than rc scripts). If you are going to set up Solaris 10, it's best to immediately start with bootable ZFS file systems rather than trying to upgrade your UFS file systems later. Security is also vastly improved over 2.6, as well as not having to use the old OpenWindows. Also find out what changes you'll need to make to have your old apps run, with all the changes in libraries and stuff since then.

  • C and C++ applications - Solaris 8 to Solaris 10 transition

    I am about to be involved in the process of building and deloying C and C++ applications on Solaris 10, that currently are built and run on Solaris 8. I do not anticipate significant problems, based on a review of the Solaris 10 release notes (particularly the End-of Software statements). However, I was curious to know if any one from the the Solaris community may have lessons learned that they would be willing to share in regards to this activity.
    Thanks,
    HLK1

    Check metalink note 291024.1
    It should be possible to skip point 3 and install on AIX 11.1.0.7 skipping 10.2.0.4 and then use transport_tablespace exp/imp

  • Scope and Career in Solaris OS 10

    Hi,
    My company is giving me a project (OMC or department) wherein I am to work on Solaris OS. However, my company is going to provide me with the training of Administration and Treoubleshooting of Solaris OS 10 (Technically the training would be at Level 2).
    I have expertise of Red Hat Enterprise Linux 5 at RHCE Level. I have interest in learning more on UNIX.
    So, my main question is: What would be my career or future in Solaris? Would I be working on a totally new technology? Would my understanding of UNIX and Linux be of a great help or not at all? Also, money or salary-wise, can I expect a good package after acquiring skills in Solaris OS?
    With regards,
    Dev.

    Most of what you are asking is a matter of opinion and or geographically specific. I have found that there are quite a few similarities with rhel and solaris. What you will find a lot is that files may be similar in their configuration but are in different locations in solaris than in rhel. The way of configuring solaris as compared to rhel will be different as well. Solaris doesn't have as many built in configuration tools like rhel has, system-config...etc. Most of it will be done by hand via files or during initial set up.
    Personally I love solaris, I feel it is a great OS that has a lot to offer. It is very stable.

  • Audit useradd and userdel on solaris..

    Hello Folks,
    How can i enable auditing of useradd and userdel on solaris..
    i work for a siem vendor and need to capture the message id generated for these actions..
    Any help appreciated..
    Thanks

    Thanks Soorya,
    form what i have read over the internet, that flag captures everything except useradd and userdel..
    Can you confirm setting that flag will indeed capture these 2 activities?
    Many Thanks

  • MD5 and NTP on solaris

    Hello
    I want to use a solaris box as an NTP server but the cisco boxes use MD5. My questions are:
    Is MD5 supported on Solaris?
    If not is there an alternative that both support?
    Are there any configuration docs for MD5 and NTP for solaris?
    TIA
    Andrew

    Sure !! support
    You must set the key at /etc/inet/ntp.keys
    somthing like this
    4 M DonTTelL
    6 M hElloWorld
    22 M ImASecret
    M refer to MD5 encription

  • Which version of Motif and X11 on Solaris 8

    Would anyone know how to find the version number for X11 and Motif on Solaris 8?
    I am looking for a SUN/UNIX command that confirms that Solaris 8 is using X11R6.4.
    uname -a reveals:
    SunOS sunstro02 5.8 ....... SUNW, Ultra-5_10
    Mazikati

    The version of X11 on Solaris 8 is X11R6.4. I don't know where that information is embedded in
    the OS, but it is listed in the "What's New in the Solaris 8 Operating Environment" which
    can be found on docs.sun.com.
    The Motif version is based on The Open Group's version 2.1.
    Alan
    Sun Developer Technical Support
    http://www.sun.com/developers/support

  • Oracle 10G installation problem, and errors on SOLARIS 10 x86

    HI.
    I installed the last version of oracle 10g on a x86 SOLARIS 10 system.
    When the installer arrived at Configuration assistants, the window is stopping, and I can't see forward. But when I look at the installAction.log, the installation is checked as OK (?).
    When I launch sqlplus, and startup inside, it is said the ora-00205 error (problem with control files), and in the end, I'm really suprised there's no the database I told the installer to create at the beginning. But should I be surprised? As I didn't see really the end of the installation, and the installer didn't propose me the PATH where to install the DB, well, I guess there's something wrong.
    Could anybody tell me how to solve these problems, please?
    Thank you :)

    Two options:
    1. Create database using DBCA - execute $ORACLE_HOME/bin/dbca
    2. Create database manually (without DBCA)

  • Ssh  and compression in solaris 10

    Hi All
    Installed OpenSSH on solaris 10 box. Hoped that ssh will work the same as rsh. I have scripts which use rsh and are having problems using ssh. Also I have a problem with compression. This is not related to ssh (I think )
    I compress binary file and try to extract it on a different node as follows
    cat <compressed file> | rsh(/ssh) -n <node> "uncompress|cpio -idm..."
    this spits out stdin: not in compressed format.
    However if I ftp the file to <node> and do the above command and without the rsh/(ssh), it works fine.
    Has any one seen these pecularities. Appreciate your help and inputs
    Regards

    Your command looks okay to me.
    Any chance that on <node> you have a .profile/.login/.cshrc or something that is spewing data to output? That might confuse the uncompress.
    In other words, if you do this....
    # echo "Test message" > /tmp/msg
    # cat /tmp/msg | ssh node "cat - > /tmp/msg"
    # ssh node
    node# cat /tmp/msg
    What do you get? Ignore the compression part for now and investigate if data is being transported properly.
    Darren

  • How to install printer and modem in solaris

    Please send me detailed installation information about how to install a serial or aparallel printer on solaris 7 and 8 and also how to install the modem on solaris 7 and 8.pls send me some docs,informations etc.

    Solaris 8 includes an "answerbook" CDROM that explains this
    in great detail. Look in the <tt>Solaris 8 System Administrator Collection</tt> �
    <tt>System Administration Guide, Volume 2</tt>.
    You can also read the answerbook documentation online on
    http://docs.sun.com.

  • OpenGL and GLX on Solaris Intel

    Can OpenGL and GLX be added to Solaris Intel without having to use Xfree86?
    I have built the Mesa libraries but still need the GLX extensions.
    Does any one know of an easy solution?

    Hi Senthilkumar,
    Thanks for reply!
    I found a couple of intel 10/100 network cards in our town, there are INTEL N232 10/100 PCI, INTEL PRO100+ 10/100 PCI, Intel 8460 10/100BT, I am not sure which one you were talking about, can you give me some detail information please?
    Thanks again.
    Mark

  • Problems reading (?) and displaying diacrites (Solaris)

    Hi,
    We are developing an application using WSAD 4.0.3 in a Windows 2000 environment.
    The production environment is on a Solaris 8 machine, using WAS AE 4.0.5. and DB2 7.2
    When we read an UTF-8 XML file with diacrites, they are not displayed right on the JSP pages. I am not sure where it goes wrong. The XML file is read, and put in a database. The JSP displays the data from the database. For the database "communication" we use EJBs
    I guess it is due to SDK 1.3 not supporting localization (except for Japanese and some Chinese, Korean and western European locales), that being true for JSP 1.1. also.
    Is that correct? And so yes, is there an easy workaround?

    There are alternative or related characters for each of Combining Diacritical Marks. You can download a pdf file here for "Combining Diacritical marks."
    http://www.unicode.org/charts/
    And here is a sample of code which displays characters that a specified encoding can encode.
    import java.nio.charset.*;
    public final class TestCharset{
    public static void main(String[] args) throws Exception {
    Charset chset = Charset.forName("ISO-8859-1"); // specify encoding in the form supported in the java.nio package
    CharsetEncoder encoder = chset.newEncoder();
    for(int j=0;j<Character.MAX_VALUE;j++){
        if(encoder.canEncode((char)j)) {
          System.out.print("0x");
          System.out.print(Integer.toHexString(j));
          System.out.print(" ");
    System.out.println();
    }

  • Difference between bash and sh in Solaris 8 env.

    Can someone tell me what's the difference is between BASH env and SH env under Solaris 8.
    When we kick of a process under BASH it runs fine and if we do the same thing from SH it crashes and then we come back again in BASH try it crashes. Very wiered behavior did anyone ever came across such kina issue.
    Thanks

    It may be a problem with versions.
    I count at least three different 'sh' executables -
    one of them's linked to 'ksh'. There's only
    one bash.

  • Dedicating physical CPUs to a zone and migrating a Solaris 8 box to a zone?

    If I have a machine with a large number of cores (say 24), and dedicate 4 of the CPUs to the zone, psrinfo shows the number of CPU's dedicated to that zone as 4, however, the global zone still shows 24.
    Does this mean that if there's enough stuff running in global that it can preempt the stuff running inside the zone? The concern here is that the stuff we want to run in the zone is a bit more critical than in global, so we wouldn't want global to eat up CPU resources of the zone. (I suppose we could repurpose the stuff running inside global and the zone, but then we'd get the reverse isolation issue at some other point.)
    The other questions is that there's an old E450 running Solaris 8 and it's got a bunch of stuff installed on it. Would it be possible to somehow convert all the software and data of that E450 into a container or zone and run that on a more modern machine - say a T5420 which runs Solaris 10 (without upgrading the stuff running under the E450 to Solaris 10?)

    you can create a flar archive of the entire system and then import it as a solaris 8 zone. if you are doing this on a cool threads system, beware of the processor. it does well with threads. if what you run on the 450 is mostly single threaded or needs a decent cpu, the coolthreads servers are not a good fit.

Maybe you are looking for