tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Tomcat Wiki] Update of "HowTo" by KonstantinKolinko
Date Wed, 09 Dec 2015 11:23:32 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification.

The "HowTo" page has been changed by KonstantinKolinko:
https://wiki.apache.org/tomcat/HowTo?action=diff&rev1=143&rev2=144

Comment:
Update options for obtaining a thread dump. Add StuckThreadDetectionValve.

  
  If you cannot use any of the above methods, it is also possible to obtain a thread dump
programmatically, with a Servlet or JSP page that runs within Tomcat. For example, you can
use `java.lang.Thread.getAllStackTraces()` method.
  
- Tomcat Manager web application in Tomcat 8 and later supports a command that outputs a thread
dump.
+ Tomcat Manager web application starting with Tomcat 7.0.58 / 8.0.0 supports a command that
outputs a thread dump.
- ([[https://issues.apache.org/bugzilla/show_bug.cgi?id=57261|Not yet documented]])
+ ([[http://tomcat.apache.org/tomcat-8.0-doc/manager-howto.html#Thread_Dump|Tomcat 8 documentation]],
[[https://issues.apache.org/bugzilla/show_bug.cgi?id=57261|BZ 57261]])
  
+ `StuckThreadDetectionValve` valve logs stacktraces of request processing threads that are
busy for longer than configured time limit. It is available starting with Tomcat 6.0.36 /
7.0.14. ([[http://tomcat.apache.org/tomcat-8.0-doc/config/valve.html#Stuck_Thread_Detection_Valve|Tomcat
8 documentation]])
+ 
+ ----
  
  == How do I read a Java thread dump ? ==
  Java thread dumps are just text files, so you can read them with any text editor. There
are some tools that can make your life easier, especially if you need to look at more than
one thread dump at once.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message