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