Print stack and locks information of a Java process

jhsdb

  • Attach to a Java process or launch a postmortem debugger to analyze the core dump from a crashed Java Virtual Machine.
    More information: <https://manned.org/jhsdb>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

jhsdb jstack --pid {{pid}}

click the source code to copy install jhsdb on any operating system with command-not-found.com