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=139&rev2=140

Comment:
Note that threaddump can be obtained programmatically and via Manager webapp.

  
  This will produce a thread dump on standard output, but may not be possible 
to capture to a file.
  
+ === Using Java code ===
+ 
+ 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.
+ ([[https://issues.apache.org/bugzilla/show_bug.cgi?id=57261|Not yet 
documented]])
+ 
+ 
  == 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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to