Confluence 3.2 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
The minimum and maximum JVM heap space allocated to the application server affects performance. Confluence administrators may wish to modify this value from the defaults depending on their server load. This document only provides guidelines rather than rules, so administrators optimising for performance should use this document as a starting point only.
Sun JRE での Confluence のメモリ管理、およびメモリ調整の包括的な概要については、「ガベージ コレクターのパフォーマンス問題」をお読みください。
最適なメモリ設定のためのテスト
In the general case, both JIRA & Confluence users will benefit from setting the minimum and maximum values identical. In larger installations, there is benefit to memory tuning, if there is a perceived performance issue. If you are experiencing Out of Memory Heap errors, try doubling the -Xmx and -Xms values for your installation to see if this resolves or helps resolve your issue. If not, please lodge a support ticket as there may be other factors contributing.
Memory usage is most likely to be maximised under peak load, and when creating a site XML backup. In many cases, the backup can be the cause of the OOM, so increase -Xmx values and verify if a backup was occurring at the time of OOM. A quick rule of thumb for gauging the success of a memory adjustment is using simple anecdotal evidence from users. Is it snappier? The same? How does it handle while a backup is occurring?
通常の使用では、XML バックアップを無効化し、本番環境バックアップ ストラテジーを使用することをお勧めします。
- サーバー上で XML サイトバックアップを手動で実行することが通常の場合は、サーバーに最大負荷を与えた状態で、サイト XML バックアップを実行することで最大メモリ要件をテストしてください。
- 手動で XML サイトバックアップを作成しない場合は、単に、最大の負荷状態でサーバーを監視してください。
メモリ設定の適用
Users of the EAR/WAR distribution set their memory in their application server. For Confluence Standalone, the heap space is set in the Confluence install directory.
- Windows users edit
TOMCAT_HOME/bin/setenv.bat - Other OS users edit
TOMCAT_HOME/bin/setenv.sh
If you are running Tomcat as a Windows service, you may need to run a
regedt32 to increase memory as in the article on increasing JIRA memory. Although the article discusses JIRA, it should also be applicable to Confluence.
The relevant parameter is
JAVA_OPTS="-Xms256m -Xmx1024m"
Where -Xms is the minimum and -Xmx is the maximum memory available to Apache Tomcat. In this sample the maximum memory has been set to 1024 megabytes, but you will have to figure out the best setting based on your particular environment. In regedit, it will be listed as JvmMs and JvmMx.
Note: In newer Tomcat distributions the file may not exist. Feel free to create it in the ./bin directory.
