Steps to take a Heap Dump for a weblogic server running on jrockit-
1. Run ps -ef | grep oracle or ps -ef | grep managedserver to find the process id (pid)
2. Check the java path in the process
3. Run the below command for the heap dump
/usr/local/java/bin/jrcmd 19456 print_threads > /tmp/heap_dump.txt
19456 is the process id or pid
jrcmd
is a command-line tool included with the JRockit JDK that you can use to send diagnostic commands to a running JVM processOracle Documentation reference -
https://docs.oracle.com/cd/E15289_01/doc.40/e15061/ctrlbreakhndlr.htm
jrcmd <jrockit pid> [<command> [<arguments>]] [-l] [-f file] [-p] -h]
<jrockit pid>
is either the process ID or the name of the Main class that runs the application.[<
command> [<
arguments>]]
is any diagnostic command and its associated arguments; for example,version
,print_properties
,command_line
.-l
displays the counters exposed by this process. These counters are for internal use by Oracle and are not officially supported or documented.-f
reads and executes commands from the file.-p
lists JRockit JVM processes on the local machine.-h
displays help.
No comments:
Post a Comment