LinuxCommandLibrary

jhsdb

Attach to a Java process or launch a postmortem debugger to analyze the core dump from a crashed Java Virtual Machine.

TLDR

Print stack and locks information of a Java process

$ jhsdb jstack --pid [pid]
copy


Open a core dump in interactive debug mode
$ jhsdb clhsdb --core [path/to/core_dump] --exe [path/to/jdk/bin/java]
copy


Start a remote debug server
$ jhsdb debugd --pid [pid] --serverid [optional_unique_id]
copy


Connect to a process in interactive debug mode
$ jhsdb clhsdb --pid [pid]
copy

Help

clhsdb        command line debugger 
    hsdb          ui debugger 
    debugd --help to get more information 
    jstack --help to get more information 
    jmap   --help to get more information 
    jinfo  --help to get more information 
    jsnap  --help to get more information 

Copied to clipboard