2016-02-16 19:27:52 +00:00
|
|
|
# jstack
|
|
|
|
|
|
|
|
> Java Stack Trace Tool.
|
2021-09-19 00:10:50 +01:00
|
|
|
> More information: <https://manned.org/jstack>.
|
2016-02-16 19:27:52 +00:00
|
|
|
|
2021-07-13 09:59:48 +01:00
|
|
|
- Print Java stack traces for all threads in a Java process:
|
2016-02-16 19:27:52 +00:00
|
|
|
|
|
|
|
`jstack {{java_pid}}`
|
|
|
|
|
2021-07-13 09:59:48 +01:00
|
|
|
- Print mixed mode (Java/C++) stack traces for all threads in a Java process:
|
2016-02-16 19:27:52 +00:00
|
|
|
|
2016-02-16 20:36:36 +00:00
|
|
|
`jstack -m {{java_pid}}`
|
2016-02-16 19:27:52 +00:00
|
|
|
|
2021-07-13 09:59:48 +01:00
|
|
|
- Print stack traces from Java core dump:
|
2016-02-16 19:27:52 +00:00
|
|
|
|
|
|
|
`jstack {{/usr/bin/java}} {{file.core}}`
|