is a serviceability tool included only in the JDK's binary folder. How to Install via Terminal The most efficient way to get
With jstack installed, you can now debug live Java applications directly from your Ubuntu terminal.
# Basic thread dump jstack <PID>
2345 com.example.MyApplication 1234 jcmd