How to enable debug logging to investigate document conversion problems in Confluence's External Process Pool (sandbox)
プラットフォームについて: Data Center - この記事は、Data Center プラットフォームのアトラシアン製品に適用されます。
このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
目的
In Confluence Data Center, resilience against the impact of memory or CPU intensive document conversion actions (such as previewing Microsoft Office files or exporting pages as PDF) is achieved by delegating these tasks to an external process pool. This is a separate pool of java processes, managed by Confluence. These java processes (also known as sandboxes) can crash or be terminated and will be restarted automatically, without affecting the main Confluence java process. However, there are situations where finding the cause of a sandbox process's crash or forceful-termination becomes necessary (such as investigating why a specific document conversion or preview generation attempt fails).
ソリューション
- Navigate to Confluence on a tab in the browser, note the Confluence node ID of the active session (scroll to the bottom of the Confluence web interface, the Confluence node ID is visible in the footer).
Example:
In the screenshot above,545a90f3
is the node ID.
Then, navigate to Confluence administration > Logging and Profiling:
in the Add New Entry > Class/Package Name field, enter
com.atlassian.confluence.impl.util.sandbox
- set the New Level drop-down to
DEBUG
, and click Add entry - scroll to the bottom of the Logging and Profiling page, and click Save
Open another tab on the same browser, navigate to Confluence, ensure that the node ID in the footer of the Confluence web interface is the same as the one observed in step 1, and then replicate the steps that result in document conversion/preview generation failure.
For situations relating to file previews (such as previewing Microsoft Office files or specific PDFs), attaching the file(s) to a new Confluence page is recommended for accurate debugging and easy root-cause isolation.
With debug logging enabled, verbose messages will appear in the
atlassian-confluence.log
conveying more information about the cause of failure.
Here is an example where the sandbox process ran out of memory:2020-12-07 15:12:46,961 INFO [sandbox-logger] [impl.util.sandbox.ConversionSandbox] lambda$static$0 worker0: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
- To revert logging levels, navigate to Confluence administration > Logging and Profiling:
- click Remove next to the entry for
com.atlassian.confluence.impl.util.sandbox
- scroll to the bottom of the Logging and Profiling page, and click Save
- click Remove next to the entry for
- Generate a new un-truncated support zip from the Confluence node involved in the failed conversion operation (identified by its node ID in step 1).
- Contact Atlassian Support, share the support zip along with details such as the Confluence page title, the document name/type involved in the document conversion operation, and the approximate timeframe when the attempt failed.