Question:
We are experience 100% CPU usage issue after the server runs for 20-30mins. We are trying to troubleshoot.
I have read that we can use jstack
to generate dump of high cpu thread.
However in Amazon ami jstack is not installed.
1 2 |
OpenJDK Runtime Environment (amzn-2.5.1.2.45.amzn1-x86_64 u65-b17) |
Is there a way I can install jstack without reinstalling oracle build?
Also is there any other solution to get dump?
Answer:
Try following command:
1 2 |
kill -quit |
The threads stackthreadses should be appended to default output.
More information available here