kill -3来获取java线程转储 [英] kill -3 to get java thread dump

查看:160
本文介绍了kill -3来获取java线程转储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 kill -3 命令在unix中查看JVM的线程转储。但是我在哪里可以找到此 kill 命令的输出?我迷路了!!

I am using kill -3 command to see the JVM's thread dump in unix. But where can I find the output of this kill command? I am lost!!

推荐答案

您也可以使用jstack(包含在JDK中)进行线程转储并将输出写入任何地方你要。这在unix环境中不可用吗?

You could alternatively use jstack (Included with JDK) to take a thread dump and write the output wherever you want. Is that not available in a unix environment?

jstack PID > outfile

这篇关于kill -3来获取java线程转储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆