jstack
Java stack trace tool. More information: <https://manned.org/jstack>.
Install
- All systems
-
curl cmd.cat/jstack.sh
- Debian
-
apt-get install openjdk-12-jdk-headless
- Ubuntu
-
apt-get install openjdk-12-jdk-headless
- Arch Linux
-
pacman -S java-environment-common
- Kali Linux
-
apt-get install openjdk-11-jdk-headless
- Fedora
-
dnf install java-9-openjdk-devel-debug-1
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install openjdk-12-jdk-headless
- Raspbian
-
apt-get install openjdk-8-jdk
- Dockerfile
- dockerfile.run/jstack
Java stack trace tool. More information: <https://manned.org/jstack>.
-
Print Java stack traces for all threads in a Java process:
jstack java_pid
-
Print mixed mode (Java/C++) stack traces for all threads in a Java process:
jstack -m java_pid
-
Print stack traces from Java core dump:
jstack /usr/bin/java file.core
© tl;dr; authors and contributors