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 Sat, 29 Nov 2014 17:20:19 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=137&rev2=138

Comment:
Simplify section on using jstack tool. Add link to JDK documentation.

  
  Getting a thread dump depends a lot on your environment. Please choose the section below
that matches your environment best. The more universal and convenient options are presented
first, while the more difficult ones or those for specific setups are provided later. Generally,
you should start at the top of the list and work your way down until you find a technique
that works for you.
  
- === If you are running Sun JDK 1.6 or higher ===
+ === If you are running Oracle (Sun) JDK ===
- Sun's JDK (not the JRE) ships with a program called ''jstack'' (or ''jstack.exe'' on Microsoft
Windows) which will give you a thread dump on standard output. Pipe the output into a file
and you have your thread dump. You will need the process id ("pid") of the process to dump.
Use of the program ''jps'' (''jps.exe'' on Microsoft Windows) can help you determine the pid
of a specific Java process.
+ Oracle JDK (not the JRE) (formerly Sun JDK) since version 1.6 (and since 1.4 on *nix systems)
ships with a program called ''jstack'' (or ''jstack.exe'' on Microsoft Windows) which will
give you a thread dump on standard output. Pipe the output into a file and you have your thread
dump. You will need the process id ("pid") of the process to dump. Use of the program ''jps''
(''jps.exe'' on Microsoft Windows) can help you determine the pid of a specific Java process.
  
+ See [[http://docs.oracle.com/javase/8/docs/technotes/tools/|Tools page]] in JDK documentation
for usage reference.
- === If you are on *NIX running Sun JDK ===
- Sun provides ''jstack'' on *nix systems from version 1.4 onward. See the above tip if you
have such an environnment.
  
  === If you are running on *NIX ===
  Send a SIGQUIT to the process. The thread dump will be sent to stdout which is likely to
be redirected to CATALINA_BASE/logs/catalina.out.

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


Mime
View raw message