Home | History | Annotate | Line # | Download | only in Examples
      1  1.1  christos The following are examples of running j_stat.d.
      2  1.1  christos 
      3  1.1  christos j_stat.d shows you the number of events per second that have happened since
      4  1.1  christos the last line output.  The default interval is 1 second, but you can specify
      5  1.1  christos other intervals as arguments to the script.
      6  1.1  christos 
      7  1.1  christos This shows the j_stat.d script reflecting the Code/Ruby/Func_abc script.  
      8  1.1  christos 
      9  1.1  christos # j_stat.d
     10  1.1  christos TIME                 EXEC/s THREAD/s METHOD/s OBJNEW/s  CLOAD/s EXCP/s   GC/s
     11  1.1  christos 2007 Sep 24 04:00:34      0        0        0        0        0      0      0
     12  1.1  christos 2007 Sep 24 04:00:35      2        6    11660     5306      318     41      0
     13  1.1  christos 2007 Sep 24 04:00:36      0        0      124        4        0      2      0
     14  1.1  christos 2007 Sep 24 04:00:37      0        0      124        4        0      2      0
     15  1.1  christos 2007 Sep 24 04:00:38      0        0      123       75        9      1      0
     16  1.1  christos 2007 Sep 24 04:00:39      0        0        0        0        0      0      0
     17  1.1  christos 2007 Sep 24 04:00:40      0        0        0        0        0      0      0
     18  1.1  christos ^C
     19  1.1  christos 
     20  1.1  christos Here we can see that at 2007 Sep 24 04:00:35 there were 2 Java programs
     21  1.1  christos executed, (this number will include those without Java provider support),
     22  1.1  christos there were 6 threads created, 11,660 methods called, 5306 new objects created,
     23  1.1  christos 318 class loads, 41 exceptions raised and no garbage collects. 
     24  1.1  christos 
     25  1.1  christos The numbers are per second counts for the interval specified. The default 
     26  1.1  christos interval is 1 second.
     27  1.1  christos 
     28  1.1  christos If you see a count in "EXECS" but not in the other columns, then your Java 
     29  1.1  christos software is probably not running with the DTrace hotspot provider.
     30  1.1  christos 
     31  1.1  christos If you see counts in "CLOAD" but not in "METHODS", then you Java software 
     32  1.1  christos probably isn't running with "+ExtendedDTraceProbes".
     33  1.1  christos 
     34