Linux command
jhsdb 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Attach debugger to process
jhsdb clhsdb --pid [pid]
Analyze core dump
jhsdb hsdb --core [core] --exe [java]
Print Java stack traces
jhsdb jstack --pid [pid]
Heap analysis
jhsdb jmap --pid [pid] --heap
Mixed stack traces
jhsdb jstack --mixed --pid [pid]
Launch GUI debugger
jhsdb hsdb --pid [pid]
说明
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.
参数
- 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.
FAQ
What is the jhsdb command used for?
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.
How do I run a basic jhsdb example?
Run `jhsdb clhsdb --pid [pid]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does clhsdb do in jhsdb?
Command-line HotSpot debugger.