clojure icon indicating copy to clipboard operation
clojure copied to clipboard

Debug hanging Clojure processes

Open practicalli-johnny opened this issue 4 years ago • 0 comments

If you have a Clojure process that is hanging:

find the process id with jcmd inspect the thread stacks with jstack. Takes a little bit of wading through the noise but it can tell you a lot of where your process is hanging.

also this stuff greps really well, especially if you have a common prefix for your own namespaces, like I can jstack $PID | egrep '(^"|lambdaisland)' and see each individual thread, and the stack frames that are in my own code

https://clojurians.slack.com/archives/CCY2V0U6A/p1626969791039800

practicalli-johnny avatar Jul 24 '21 05:07 practicalli-johnny