modeling

All posts tagged modeling

Thread dump sampling in fixed time intervals using jstack script

This simple shell script takes several jstack snapshots in fixed time intervals: [Reference document]

Use above script like this:

How to compare the thread dumps

To compare the results you may use interactive diff viewers, e.g.

Another way to see what parts of the jstack trace are changing over time is to compare adjacent jstack trace using context diff (-c option):

Here, the result shows only the places where the jstack trace changes from file to file.