本文介绍了Tomcat线程转储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以从Tomcat中获取线程转储。我想在某个时间监视Tomcat上正在运行的线程。
Is there away to take a thread dump from Tomcat. I want to monitor the running threads on Tomcat at a certain time.
注意:我在网络逻辑上这样做但我没有知道如何在Tomcat上完成它。
Note: I was doing that on Web logic but i don't know how it cab be done on Tomcat.
推荐答案
如果你使用Linux,你可以发送一个kill -3 [你的pid] tomcat]它将转储catalina.out中的所有当前线程。
If you use Linux, you can send a kill -3 [pid of your tomcat] and it will dump all current threads in the catalina.out.
这篇关于Tomcat线程转储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!