How to Enable Garbage Collection (GC) Logging
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
目的
Garbage collection logs are useful when trying to isolate issues within Java-based applications as they will pinpoint blocked, hung or stuck threads that may be causing downstream effects in the application. It is always useful to collect at least 10 minutes of garbage collection logs, but analysis accuracy is often increased by the amount of recent log data to review.
Linux
Add the following parameters into your Confluence System Properties, in the <CONFLUENCE_INSTALL>/bin/setenv.sh
file (be sure to enter the path for your <CONFLUENCE_INSTALL>
directory):
Windows
Batch File
If you start Confluence using start-confluence.bat
, add the below code to setenv.bat
:
Service
If you start Windows as a Service, add the below to the service by following these steps (be sure to enter the path for your <CONFLUENCE_INSTALL>
directory)
Differences between JDK 8 and JDK11/17
For further information about the different GC configuration between JDK8 and JDK11/17, please check our KB Unrecognized JVM GC options when using JDK 11/17