In this page:

If Confluence stops responding, or is performing poorly, you should create a thread dump to help Atlassian determine the cause of the problem.

This will show the state of each thread in the JVM, including a stack trace and information about what locks the thread is holding and waiting for.

Thread dumps are only useful if they are taken at the appropriate time. They normally need to be taken at the time when the application is unresponsive.

Stack Traces and Security

デバッグ サポートケースを支援し、優れたサポートを実現するために、Confluence はエラーが発生すると Web インターフェイスを介してスタックトレースを提供します。これらのスタックトレースには、Confluence がエラー発生時に実行していた内容に関する情報と、ご使用のデプロイメントサーバーに関する一部の情報が含まれます。

オペレーティングシステム、バージョン、Java バージョンなど、非個人情報のみが提供されます。適切なネットワークセキュリティを備えていれば、この程度の情報提供で危険性を危惧する必要はありません。ユーザー名やパスワードはまったく含まれていません。

Generating a Thread Dump on Windows

To take a thread dump from Windows:

  1. Visit http://www.adaptj.com/root/main/download and click Launch
  2. Click Run for any security warnings
  3. Select Process -> Thread Dump
  4. Under Process Id, select the '...' button.
  5. From the drop-down list, select the Confluence process. Users running Confluence Standalone, select the 'Java (Tomcat) ...' option. Users running Confluence WAR should select their application server process.
  6. Ensure that the "Thread dump" and "Keep Remote Thread Running" is selected.
  7. Click OK to capture the thread dump.
  8. Save the output to a file, eg 'threaddump.log'

(info) If you were asked by Atlassian technical support to create the thread dump, please take 2 to 3 thread dumps with a time interval in between (eg. 1 minute) so we can see some patterns. Attach the log file to the support ticket.

Alternatively, if you are not running Confluence as a service, click on the console and press <CTRL>+BREAK

Generating a Thread Dump on Linux, including Solaris and other Unixes

Find the process ID of the JVM and use the ps command to get list of all processes:

kill -3 <pid>

Note: This will not kill your server (so long as you included the "-3" option, no space in between).
The thread dump will be printed to Confluence's standard output (catalina.out).

出力

Standard logging for Confluence Stand-alone is sent to the atlassian-confluence.log, in the confluence-home directory, not in the confluence-install directory. Thread dumps are an exception since they dump the threads of the entire application server - they'll appear in the catalina.out file in the application directory's logs folder. You can search for the term "thread dump" in the log file for the beginning of the dump. Submit this along with the atlassian-confluence.log in your support ticket.

Thread Dump Tools