How to get a complete stack trace of a running java program that is taking 100% cpu?
debugging, java, stack-trace
Solution
Try with jstack. It'll give you a full list of what your threads are doing. All it needs is the process pid.
Problem
I do have a jenkins instance that is stuck in some kind of endless loop without any visible activity. I can get the `pid` of the running process so how do I generate a trace that I can use for a bug report? I'm running on linux.