mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
26 lines
663 B
Plaintext
26 lines
663 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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>.
|
|
|
|
- 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_or_bin_or_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}}`
|