Tomcat线程转储

编程入门 行业动态 更新时间:2024-10-14 08:25:43
本文介绍了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线程转储

本文发布于:2023-11-13 02:26:48,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1583166.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:线程   Tomcat

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!