Confluence 5.0 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
This document relates broadly to memory management with Oracle's Hotspot JVM. These are recommendations based on Support's successful experiences with customers and their large Confluence instances.
別途アトラシアン サポートから指示がない限り、 Concurrent Mark Sweep (CMS)コレクタを使用しないようにしてください。このコレクタは手動による広範なチューニングとテストを必要とし、使用によってパフォーマンスが低下する可能性があります。
The information on this page does not apply to Confluence OnDemand.
小さなヒープの使用
Keep your heap as small as possible, without the instance experiencing OutOfMemory errors. The default size for Confluence is 512mb. If you experience OutOfMemory errors and need to increase this, we recommend you do it in 512mb or 1gb allotments, and monitor the instance. If you continue to receive OutOfMemory errors, increase the heap by another 512mb or 1gb, and continue this process until you are operating stably with no OutOfMemory errors. Do not increase the heap further than required, as this will result in longer garbage collections.
古いチューニングパラメーターの削除
On every full GC, the JVM will resize the allocations of Eden, Survivor etc based on the throughput it is actually seeing. It will tune itself based on the real world data of the objects that are being created and collected. Generally, the JVM is much better at this than we humans are, and most of the time simply allowing it to tune itself will give you better performance.
過去に JVM パラメーターを追加したことがあり、現在 GC に問題が発生している場合、すべての GC 関連のパラメーターを削除するようお勧めします。ただし、特定の問題を解決するためにそのパラメーターを追加し、実際に問題が解決された場合は別です。また、パラメーターが今もその問題を解決していて、他の問題を引き起こしていないことを確認するために、今すぐ再ベンチマークの実行を検討する必要があります。
VM リソースの確認
VM 上で Confluence を実行する場合、スワップファイルを使用していないことを確認します。使用している場合は、JVM ガベージが収集を行う時に、スワップファイルからオブジェクトをメモリにロードする必要があり、これによって GC 一時停止時間が著しく長くなる可能性があります。スワッピングやバルーニング、バースティングを行うのではなく、VM に十分なメモリを割り当てます。
手動によるチューニング
If you find you are still experiencing difficulties with GC after following these recommendations and you would like to see if you can tune the JVM better to improve performance, we recommend following the instructions in our Garbage Collection (GC) Tuning Guide. This document will take you through the process of choosing performance goals (throughput/footprint/latency), and how to tune for those goals.
GC ログの表示
How to Enable Garbage Collection (GC) Logging, and use Chewiebug's GCViewer to view the resulting logs.
