LinuxCommandLibrary

jhsdb

java HotSpot Serviceability Agent debugger

TLDR

Attach debugger to process

$ jhsdb clhsdb --pid [pid]
copy
Analyze core dump
$ jhsdb hsdb --core [core] --exe [java]
copy
Print Java stack traces
$ jhsdb jstack --pid [pid]
copy
Heap analysis
$ jhsdb jmap --pid [pid] --heap
copy
Mixed stack traces
$ jhsdb jstack --mixed --pid [pid]
copy
Launch GUI debugger
$ jhsdb hsdb --pid [pid]
copy

SYNOPSIS

jhsdb command [options]

DESCRIPTION

jhsdb is the Java HotSpot Serviceability Agent debugger. It analyzes JVM processes and core dumps.
The tool provides low-level JVM debugging capabilities. It can inspect heap, stack, and internal structures.

PARAMETERS

clhsdb

Command-line HotSpot debugger.
hsdb
GUI HotSpot debugger.
jstack
Print stack traces.
jmap
Memory map tool.
jinfo
Configuration info.
--pid PID
Target process ID.
--core FILE
Core dump file.
--help
Display help information.

CAVEATS

Part of JDK. Requires same JDK version as target. May need symbols for full analysis.

HISTORY

jhsdb was introduced in JDK 9 as a unified tool replacing separate serviceability agent commands.

SEE ALSO

jstack(1), jmap(1), jinfo(1), jcmd(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community