Pages

Tuesday, April 10, 2018

Generating Thread Dumps In Weblogic Server Using OS commands


Generating Thread Dumps:

1. Start the server from command line script (using nohup). Let us take managed server as an example for which we need to generate the thread dumps so start the server using script as shown below.
cd $DOMAIN_HOME/bin
nohup ./startManagedWeblogic.sh <Server_name> &

2. Now identify the PID (java Process ID) for the managed server using the below command:
ps -ef|  grep –i <server_name>
ps -ef|grep -i ms1

3. Now run the below command to create the thread dump.
kill -3 <PID>
kill -3 220221

(This will send a signal to the process whose dump we require. This signal causes the Java Virtual Machine to generate a stack trace of the process.). This command will alos create thread dump in the nohup.out file (where we started the managed server)

4. Open the nohup.out file to see generated thread dumps.

No comments:

Post a Comment