Confluence 3.4 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
If Confluence stops responding and you cannot access its integrated Generate Thread Dump feature, it is possible to create thread dumps outside the application. External thread dumps are also useful if you require information on locks being held or waited upon by threads.
スレッドダンプを複数取得する
Typically you'll want to take several dumps about 10 seconds apart, in which case you can generate several dumps and output the stack traces to a single file as follows:
Generating a Thread Dump on Linux, including Solaris and other Unixes
- Confluence を実行している java プロセスを識別します。これは以下の様なコマンドで実現できます。
ps -ef | grep java.
- Find the process ID of the JVM and use the ps command to get list of all processes:
kill -3 <pid>
The thread dump will be printed to Confluence's standard output (catalina.out).This will not kill your server (so long as you included the "-3" option, no space in between).
Generating Thread Dumps on Windows
Use jstack.
- Identify the process. Launch the task manager by, pressing
Ctrl + Alt + Deland find the Process ID of the JAVA (Confluence) process. - jstack <pid> を実行して、 単一のスレッドダンプを取得します。このコマンドで、プロセス ID <pid> の1個のスレッドダンプが取得出来ます。この場合のプロセス ID は22668です。
このコマンドにより、現在のディレクトリに threaddump.txt というファイルが出力されます。
adam@track:~$ jstack -l 22668 > threaddump.txt
if the jstack executable is not in your $PATH, then please look for it in your <JDK_HOME>/bin directory
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. 30 seconds) 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
出力
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
- Samurai
- Thread Dump Analyzer TDA TDA 1.0 Final can be obtained from the
java.net
