Netscape ENTERPRISE SERVER 6.1 - PROGRAMMER GUIDE TO SERVLETS Programmer's Manual page 119

Guide to servlets
Table of Contents

Advertisement

To use HPROF profiling on UNIX, follow these steps:
To enable HPROF profiling, edit the
1.
jvm.printErrors=2
jvm.profiler=hprof
jvm.option=-Xrunhprof:options
#jvm.option=-Xrs must be commented out
java.compiler=NONE
Suggested options for using Enterprise Server with HPROF are:
jvm.option=-Xrunhprof:file=/tmp/hprof.txt,heap=all,format=a
or:
jvm.option=-Xrunhprof:file=/tmp/hprof.txt,cpu=samples,format=a
The syntax of HPROF is as follows:
-Xrunhprof[:help]|[:
Using
lists options that can be passed to HPROF. The output is as follows:
help
Hprof usage: -Xrunhprof[:help]|[:<option>=<value>, ...]
Option Name and Value
---------------------
heap=dump|sites|all
cpu=samples|old
format=a|b
file=<file>
net=<host>:<port>
depth=<size>
cutoff=<value>
lineno=y|n
thread=y|n
doe=y|n
jvm12.conf
option
value
option2
=
,
=
Description
-----------
heap profiling
CPU usage
ascii or binary output
write data to file
send data over a socket write to file
stack trace depth
output cutoff point
line number in traces?
thread in traces?
dump on exit?
Appendix D
The HPROF Profiler
file as shown here:
value2
, ...]
Default
-------
all
off
a
java.hprof
(.txt for ascii)
4
0.0001
y
n
y
Remote Servlet Profiling
119

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.1

Table of Contents