Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

25
jhsdb Normal file
View File

@@ -0,0 +1,25 @@
---
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/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}}`