java jstack命令详解
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java jstack命令详解相关的知识,希望对你有一定的参考价值。
名称jstack: stack trace
摘要:
jstack [ option ] pid
jstack [ option ] executable core
jstack [ option ] [server-id@]remote-hostname-or-IP
功能:
jstack 打印出指定的java进程、core文件或远程调试服务的调用栈信息。包括类全面,方法名称,byte code index和代码行号。指定-m参数还可以打印出本地方法调用栈. 可以快速定位程序问题.
参数说明:
pid process id for which the stacktrace is to be printed. The process must be a Java process. To get a list of Java processes running on a machine, jps may be used.
executable Java executable from which the core dump was produced.
core core file for which the stack trace is to be printed.
remote-hostname-or-IP remote debug server‘s (see jsadebugd) hostname or IP address.
server-id optional unique id, if multiple debug servers are running on the same remote host.
OPTION 选项:
-m 打印java和本地混合调用栈.
-h -help打印帮助信息
示例:
以上是关于java jstack命令详解的主要内容,如果未能解决你的问题,请参考以下文章