NonStop Server for Java 5.0 Programmer's Reference

TestClass.getNew(TestClass.java:16)
...........
CPU SAMPLES BEGIN (total = 331) Wed Dec 19 17:48:51 2001
rank self accum count trace method
1 5.14% 5.14% 17 29 java/util/Random.next
2 4.83% 9.97% 16 62 WorkClass.doSomeWork
3 4.23% 14.20% 14 30 java/util/Random.next
...........
CPU SAMPLES END
Example 2: cpu=times
CPU TIME (ms) BEGIN (total = 2801506) Mon Jan 7 10:41:41 2002
rank self accum count trace method
1 6.89% 6.89% 22920 6668 WorkClass.doSomeThing
2 3.14% 10.03% 2638848 10198 java/util/HashMap.access$2
3 1.70% 11.74% 2639051 16945 java/lang/String.equals
........
CPU TIMES END
Example 3 (heap=sites)
SITES BEGIN (ordered by live bytes) Wed DEC 19 11:26:18 2001
percent live alloc'ed stack class
rank self accum bytes objs bytes objs trace name
1 34.27% 34.27% 195984 4188 588528 24522 595 MyClass
2 24.22% 58.49% 94044 8246 868728 63412 1 [C
.........
SITES END
Tips
In the java command, specify no compiler:
-Djava.compiler=NONE
In Java native code (JNI), the CPU options also time native code where line-number information is not
available.
CPU time is not measured when process is blocked, for example, on a call to SQL.
To dump profiling information before the program exits:
Be sure to specify the -Xrunhprof option.
You can send a SIGQUIT signal to the JVM by typing
$ kill -QUIT java-process-id
You might need to specify the dump exit option as DOE=n to avoid an automatically generated
dump.
Alternatively, type a control key plus a backslash (Ctrl+\), which generates a SIGQUIT signal in
the OSS environment.
Avoid using the default profiling option, heap=all, which produces both the dump profile and sites
profile, because this option skews the sites profile.