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

Guide to servlets
Table of Contents

Advertisement

The HPROF Profiler
You must also change a line in the Enterprise Server start script. The start script
2.
file is server_root
PRODUCT_BIN=uxwdog
to this:
PRODUCT_BIN=ns-httpd
Start the server by running the start script. Since the server runs in the
3.
foreground (the change in step 2), the command prompt returns only after the
server has been stopped.
In another window or terminal, find the process ID of the server process.
4.
% ps -ef | grep ns-httpd
This command lists two
ID) column and identify which of the two processes is the parent process and
which is the child process. Note the PID (process ID) of the child process ID.
Send a SIGQUIT signal (signal 3) to the child process:
5.
% kill -QUIT
This displays the following ASCII menu in the window from where the start
script was invoked:
% start
Netscape-WebServer-Enterprise/6.1
[LS ls1] http://test, port 9000 ready to accept requests
Default selection: alloc and heap dump
startup: server started successfully
SIGQUIT
A SIGQUIT has been received. Do you want to:
[ 0 ]
[ 1 ]
[ 2 ]
[ 3 ]
[ 4 ]
[ 5 ]
[ 6 ]
[ 7 ]
Type number corresponding to selected action:
Select menu option 6 by typing the number 6 and then typing the Enter key.
6.
This causes HPROF data to be saved in the file specified in the
in
Type
7.
120
Netscape Enterprise Server Programmer's Guide to Servlets • April 2002 (Draft)
/https-
child_PID
continue program
check & print one deadlock
check & print all deadlocks
dump thread stacks
dump lock registry
heap inspection
hprof dump
terminate program
, for example
jvm12.conf
and press Enter to continue the program (Enterprise Server).
0
server_id
. Change the following line:
/start
processes. Look at the PPID (parent process
ns-httpd
/tmp/hprof.txt
jvm.option
.
line

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.1

Table of Contents