Jstack to debug high CPU utilization

Modified on Wed, 6 Mar at 12:32 PM

CPU utilization is stuck at 100%, take thread dump log & send it to Smarten support

Thread dump log through below command and send it to support@smarten.com before restarting the server. It will help to diagnose the issue.


jstack <pid> > C:\threadDump.log
Pid – it is process id of Java process for Wildfly.

Step 1: Get the Process ID for the shell script calling the java program
linux$ ps -aef | grep "runABCD"
user1 **8535** 4369 0 Mar 25 ? 0:00 /bin/csh /home/user1/runABCD.sh
user1 17796 17372 0 08:15:41 pts/49 0:00 grep runABCD

Step 2: Get the Process ID for the Child which was Invoked by the runABCD. Use the above PID to get the childs.
linux$ ps -aef | grep **8535**
user1 **8536** 8535 0 Mar 25 ? 126:38 /apps/java/jdk/sun4/SunOS5/1.6.0_16/bin/java -cp /home/user1/XYZServer
user1 8535 4369 0 Mar 25 ? 0:00 /bin/csh /home/user1/runABCD.sh
user1 17977 17372 0 08:15:49 pts/49 0:00 grep 8535

Step 3: Get the JSTACK for the particular process. Get the Process id of your XYSServer process. i.e. 8536
linux$ jstack **8536** > threadDump.log

Note: This article is based on Smarten Version 5.x. This may or may not be relevant to the Smarten version you may be using
jstack pid threadDump diagnose issues support java processes wildfly Business Intelligence Support Business Intelligence Articles Business Intelligence Training Smarten Support Smarten Knowledgebase Smarten Training Smarten Articles

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article