IntelliJ Community . GenerateJavaThreadDump

 
GenerateJavaThreadDump 

HOME INDEX SEARCH CHANGES GO  

How to Generate a Thread Dump in Java

When you're running a process and it either freezes or becomes sluggish for no apparent reason, it's a good idea to generate a thread dump, file a bug report with a description of what happened and attach the dump to it.

A thread dump is an invaluable source of information to Java developers when investigating deadlocks and some performance issues. It is a textual dump of all active threads and monitors of Java apps running in a Virtual Machine.

The ways to generate a thread dump differ depending on the platform:

  • Windows systems

    • Press Ctrl-Break in the command console you used to start the Integration Server.

  • Unix systems

    • Press Ctrl-\ in the terminal console you used to start the Integration Server.

      Alternatively, you can also generate a thread dump by sending the QUIT signal to the Java VM running the Integration Server

        kill -QUIT process_id

      where process_id is the process number of the respective java process.

Note: Please keep in mind that you should never copy the thread dump into the description field of an issue report. Thread dumps tend to be tens to hundreds lines of text long and the lines are typically wide and won't wrap nicely in the description field. You should always attach thread dumps to issues as attachments of type text/plain.

-- CharltonBarreto - 27 Jun 2004

e d i t a t t a c h r e f - b y d i f f s m o r e
Have ideas, requests, problems regarding this site? Send feedback.
Copyright © 2000-2003 by the contributing authors. All materials at intellij.org are the property of the contributing authors.