clojure
clojure copied to clipboard
Debug hanging Clojure processes
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