Databases Reference
In-Depth Information
How to do it...
Get the thread dump from the Administration Console:
1. Access the Administration Console by pointing your web browser to
http://adminhost.domain.local:7001/console .
2. Expand the Environment tree on the left and then click on Servers.
3. Click on the PROD_Server01 link; click on the Monitoring tab and then click on the
Threads tab.
4. Click on the Dump Thread Stacks button.
The thread dump will be displayed on the screen.
The thread dump can also be taken from the shell by using the jrcmd command-line tool or
by issuing the command kill -3 to <PID> .
1. Find the <PID> value of the PROD_Server01 Managed Server process:
[wls@prod01]$ ps aux | grep PROD_Server01 | grep -v grep | awk
'{print $2} '
<PID>
2. Issue a jrcmd command using <PID> as an argument:
[wls@prod01]$ /oracle/jvm/bin/jrcmd <PID> print_threads > some_
log_file
3. Alternatively, you can also run the kill -3 command using <PID> as an argument:
[wls@prod01]$ kill -3 <PID>
How it works...
The jrcmd command-line tool is redirecting the output to some_log_file defined in the
command line, so the thread dump will be written there. The thread dump taken by using
the kill command is written to the standard output logfile of the PROD_Server01
Managed Server.
 
Search WWH ::




Custom Search