jhsdb

Attach to a Java process or launch a postmortem debugger to analyze the core dump from a crashed Java Virtual Machine. More information: <https://manned.org/jhsdb>.

Install

All systems
curl cmd.cat/jhsdb.sh
Debian Debian
apt-get install openjdk-12-jdk-headless
Ubuntu
apt-get install openjdk-9-jdk-headless
Arch Arch Linux
pacman -S jdk10-openjdk
image/svg+xml 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-9-jdk-headless
Raspbian
apt-get install openjdk-9-jdk-headless

Attach to a Java process or launch a postmortem debugger to analyze the core dump from a crashed Java Virtual Machine. More information: <https://manned.org/jhsdb>.

  • Print stack and locks information of a Java process:
    jhsdb jstack --pid pid
  • Open a core dump in interactive debug mode:
    jhsdb clhsdb --core path/to/core_dump --exe path/to/jdk/bin/java
  • Start a remote debug server:
    jhsdb debugd --pid pid --serverid optional_unique_id
  • Connect to a process in interactive debug mode:
    jhsdb clhsdb --pid pid

© tl;dr; authors and contributors