Install Jstack On A Debian, Ubuntu, Arch, Kali, Fedora And Raspbian

Install Jstack On A Debian, Ubuntu, Arch, Kali, Fedora And Raspbian

jstack

Java Stack Trace Tool.

Install jstack

  • Debian apt-get install openjdk-12-jdk-headless Click to copy
  • Ubuntu apt-get install openjdk-12-jdk-headless Click to copy
  • Arch Linux pacman -S java-environment-common Click to copy
  • Kali Linux apt-get install openjdk-11-jdk-headless Click to copy
  • Fedora dnf install java-9-openjdk-devel-debug-1 Click to copy
  • Raspbian apt-get install openjdk-8-jdk Click to copy

Java Stack Trace Tool.

How to use jstack?

Below are few example commands for jstack that you can use in the terminal.

Print java stack traces for all threads in a java process:
jstack java_pidClick to copy
Print mixed mode (java/c++) stack traces for all threads in a java process:
jstack -m java_pidClick to copy
Print stack traces from java core dump:
jstack /usr/bin/java file.coreClick to copy
Install the latest version of jstack in Debian, Ubuntu, Arch, Kali, Fedora and Raspbian from terminal. To install the jstack just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of jstack from the respository and install it in your computer/server.