Install | Jstack On Ubuntu Skip to main content

Install | Jstack On Ubuntu

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 &lt;PID&gt; The JStack output will show

PATH=$PATH:/usr/lib/jvm/java-8-oracle/bin


Most secure storage on the planet FIPS 140-3 · NSA CSfC · DoDIN APL
Validated for top-secret data Only enterprise storage to hold this certification
Authorized NetApp Partner SANDataWorks · a division of BlueAlly