Confluence crashes due to OutOfMemoryError PermGen space
プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
問題
An error like the following occurs. It could be any module, the Quartz Scheduler is an example.
Exception in thread "DefaultQuartzScheduler_QuartzSchedulerThread" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-80-Processor1" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-80-Processor2" java.lang.OutOfMemoryError: PermGen space
Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1" java.lang.OutOfMemoryError: PermGen space
原因
If you get the error message: java.lang.OutOfMemoryError: PermGen space this means that you have exceeded Java's fixed block for loading class files. Permanent Generation Memory, unlike Java heap space, is the memory allocation for the classes themselves as opposed to the objects created. The addition of more plugins contributes to more consumption of PermGen space. The error occurs when enough classes are invoked.
ソリューション
This is only relevant for Confluence 5.7 and below as Java 8 manages PermGen automatically.
To avoid this in the future follow the steps detailed in the guide Fix java.lang.OutOfMemoryError in Confluence. Find the instructions on how to increase the Permanent Generation Space. Make sure to change -XX:MaxPermSize rather than the Heap Space Parameters.
Confluence doesn't require a huge amount of PermGen memory, so if you find that you need to increase it to more than 512MB this could indicate a problem with either the application or an installed addon.
この内容はお役に立ちましたか?