JHSDB(1)
π NAME π
okay so bestie, meet jhsdb β that's the JHSDB(1) page from the JDK Commands manual. It attaches to a Java process or launches a postmortem debugger to analyze the content of a core dump from a crashed Java Virtual Machine (JVM). π
β¨ SYNOPSIS β¨
jhsdb clhsdb [--pid pid | --exe executable --core coredump]
jhsdb hsdb [--pid pid | --exe executable --core coredump]
jhsdb debugd (--pid pid | --exe executable --core coredump) [options]
jhsdb jstack (--pid pid | --exe executable --core coredump | --connect [server-id@]debugd-host) [options]
jhsdb jmap (--pid pid | --exe executable --core coredump | --connect [server-id@]debugd-host) [options]
jhsdb jinfo (--pid pid | --exe executable --core coredump | --connect [server-id@]debugd-host) [options]
jhsdb jsnap (--pid pid | --exe executable --core coredump | --connect [server-id@]debugd-host) [options]
pidβ the process ID thatjhsdbshould attach to, and bestie the process has to be a Java process. To get a list of Java processes running on a machine, use thepscommand or, if the JVM processes are not running in a separate docker instance, thejpscommand.executableβ the Java executable file from which the core dump was produced.coredumpβ the core file thatjhsdbshould attach to.[server-id@]debugd-hostβ an optional server ID and the address of the remote debug server (debugd).optionsβ the command-line options for ajhsdbmode. See Options for the debugd Mode, Options for the jstack Mode, Options for the jmap Mode, Options for the jinfo Mode, and Options for the jsnap Mode.
Note: Either thepidor the pair ofexecutableand core files or the[server-id@]debugd-hostmust be provided fordebugd,jstack,jmap,jinfoandjsnapmodes. π«Ά
π¦ DESCRIPTION π¦
You can use the jhsdb tool to attach to a Java process or to launch a postmortem debugger to analyze the content of a core-dump from a crashed Java Virtual Machine (JVM). This command is experimental and unsupported. π
Note: Attaching the jhsdb tool to a live process will cause the process to hang and the process will probably crash when the debugger detaches. π
The jhsdb tool can be launched in any one of the following modes:
jhsdb clhsdbβ starts the interactive command-line debugger.jhsdb hsdbβ starts the interactive GUI debugger.jhsdb debugdβ starts the remote debug server.jhsdb jstackβ prints stack and locks information.jhsdb jmapβ prints heap information.jhsdb jinfoβ prints basic JVM information.jhsdb jsnapβ prints performance counter information.jhsdb command --helpβ displays the options available for the command.
π OPTIONS FOR THE DEBUGD MODE π
--serverid server-idβ an optional unique ID for this debug server. This is required if multiple debug servers are run on the same machine.--rmiport portβ sets the port number to which the RMI connector is bound. If not specified a random available port is used.--registryport portβ sets the RMI registry port. This option overrides the system property'sun.jvm.hotspot.rmi.port'. If not specified, the system property is used. If the system property is not set, the default port1099is used.--hostname hostnameβ sets the hostname the RMI connector is bound. The value could be a hostname or an IPv4/IPv6 address. This option overrides the system property'java.rmi.server.hostname'. If not specified, the system property is used. If the system property is not set, a system hostname is used.
πΈ OPTIONS FOR THE JINFO MODE πΈ
--flagsβ prints the VM flags.--syspropsβ prints the Java system properties.no optionβ prints the VM flags and the Java system properties.
π§ OPTIONS FOR THE JMAP MODE π§
no optionβ prints the same information as Solarispmap.--heapβ prints the java heap summary.--binaryheapβ dumps the java heap in hprof binary format.--dumpfile nameβ the name of the dumpfile.--histoβ prints the histogram of java object heap.--clstatsβ prints the class loader statistics.--finalizerinfoβ prints the information on objects awaiting finalization.
β OPTIONS FOR THE JSTACK MODE β
--locksβ prints thejava.util.concurrentlocks information.--mixedβ attempts to print both java and native frames if the platform allows it.
π OPTIONS FOR THE JSNAP MODE π
--allβ prints all performance counters.
π«Ά that's the whole page, bestie β brought to you by JDK 17, dated 2021, and filed under JHSDB(1) in the JDK Commands manual. mwah π
π¦ where this page comes from
- opensuse-leap 16.0: java-17-openjdk-devel 17.0.20.1-160000.1.1 Β· Apache-1.1 AND Apache-2.0 AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-only WITH Classpath-exception-2.0 AND LGPL-2.0-only AND MPL-1.0 AND MPL-1.1 AND LicenseRef-SUSE-Public-Domain AND W3C
- opensuse-leap 16.0: java-17-openjdk-devel 17.0.20.1-160000.1.1 Β· Apache-1.1 AND Apache-2.0 AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-only WITH Classpath-exception-2.0 AND LGPL-2.0-only AND MPL-1.0 AND MPL-1.1 AND LicenseRef-SUSE-Public-Domain AND W3C
- opensuse-leap 16.0: java-17-openjdk-devel 17.0.20.1-160000.1.1 Β· Apache-1.1 AND Apache-2.0 AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-only WITH Classpath-exception-2.0 AND LGPL-2.0-only AND MPL-1.0 AND MPL-1.1 AND LicenseRef-SUSE-Public-Domain AND W3C
- Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms