sudo jstack <PID>
The JStack output will show you the thread stacks of your Java application, which can be useful for diagnosing and troubleshooting issues.
Edit your ~/.bashrc :
To find the canonical path, you can navigate the symbolic links:
Now that you have JStack installed, let's walk through a basic example of how to use it: install jstack on ubuntu
sudo apt install openjdk-8-jdk
The jstack command is included in the JDK, so you don't need to install it separately. However, you need to find the location of the jstack command: sudo jstack <PID> The JStack output will show
PATH=$PATH:/usr/lib/jvm/java-8-oracle/bin