Confluence Data Center の OutOfMemory エラーのため XML のバックアップを作成または復元できない

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Data Center - この記事は、Data Center プラットフォームのアトラシアン製品に適用されます。

このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。

*Fisheye および Crucible は除く

症状

Backups within Confluence fail with this error in the logs:

2008-01-15 17:50:57,138 ERROR [http-8080-Processor5] [atlassian.xwork.interceptors.XWorkTransactionInterceptor] onThrowable Invoking rollback for transaction on action '/admin/dobackup.action (BackupAction.execute())' due to throwable: java.lang.OutOfMemoryError
 -- url: /admin/dobackup.action | userName: pkamal
java.lang.OutOfMemoryError

原因

Confluence backups require large amounts of memory and CPU.

ソリューション

Atlassian recommends disabling the backup from within Confluence and using native database sql dump tools instead. This is preferable for backup, upgrade, and creation of a test server. The xml backup is only needed for migration to a new database. Refer to Site Backup and Restore for details.

If migrating to a new database,

  1. Increase the amount of memory available to your confluence server. Refer to Fixing Out Of Memory Errors. This guide describes how to update the JAVA_OPTS line in setenv.sh/setenv.bat to increase the value of -Xmx, to increase the amount of system memory reserved by the JVM.
  2. If increased memory settings still does not work, try a backup without attachments. You can later move the attachments directory in place manually, from <confluence-home>/attachments.
  3. If you still cannot export due to memory issues, export all your large spaces individually, and import one by one. Both confluence instances (the one you are exporting from and the one you are importing into) need to be the same version.

Check Troubleshooting failed XML site backups for related troubleshooting techniques.






























最終更新日: 2024 年 12 月 18 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.