tldr/pages/common/jstack.md

16 lines
310 B
Markdown
Raw Normal View History

# jstack
> Java Stack Trace Tool.
- Print Java stack traces for all threads in a Java process:
`jstack {{java_pid}}`
- Print mixed mode (Java/C++) stack traces for all threads in a Java process:
2016-02-16 20:36:36 +00:00
`jstack -m {{java_pid}}`
- Print stack traces from Java core dump:
`jstack {{/usr/bin/java}} {{file.core}}`