-
Bug
-
Resolution: Fixed
-
High
-
5.8.18, 5.10.4, 5.9.13, 5.10.8
-
24
-
Severity 1 - Critical
-
Summary
The file conversion service in Confluence could cause OutOfMemoryError due to a bug incurring a sustained CPU spike in which was subsequently fixed in Confluence 5.10.4CONF-38233
The file conversion service leverages the API provided by Aspose.Pdf for Java. The Aspose library might consume many memory for PDFs having either lots of objects or many contents, especially for large PDF files, say >100Mb. If the memory required is not able to be fulfilled, the OutOfMemory will occur, as a result of that, the system will be very slow to response to user's requests, and the system could be restarted to recover from this situation.
How to reproduce
The issue can be reproduced with the following steps,
- Startup a Confluence instance with the memory setting: -Xms256m -Xmx1g.
- Create some test pages, then attach some PDF attachments with size more than 100Mb. Note you need to adjust the "Attachment Maximum Size" via the General Configuration.
- Click the thumbnails to view the attached PDFs
- Continue the #2 and #3 until the OOM comes up
Workaround
At this stage, the primary workaround for this issue is to upgrade to Confluence 5.10.4 as the bug causing the CPU to spike and subsequently OOME was fixed as part of --CONF-38233
Other, workarounds if you are already running on Confluence 5.10.4 are as the following:
- Increase more memory to Confluence instance if possible, as the issue is caused by the short of heap memory
- Reduce the memory spike consumed by restricting the maximum size of attachment allowed
- relates to
-
CONFSERVER-46542 XLSX File Conversion Service causes OutOfMemory
-
- Closed
-
- was split from
-
CONFSERVER-38233 File Conversion Service causes Sustained CPU Spike
-
- Closed
-
- is blocked by
-
PSR-52 You do not have permission to view this issue
- mentioned in
-
Page No Confluence page found with the given URL.
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
[CONFSERVER-43363] File Conversion Service causes OutOfMemoryError
Remote Link | New: This issue links to "Page (Confluence)" [ 423300 ] |
Workflow | Original: JAC Bug Workflow v3 [ 2876760 ] | New: CONFSERVER Bug Workflow v4 [ 3005362 ] |
Workflow | Original: JAC Bug Workflow v2 [ 2804450 ] | New: JAC Bug Workflow v3 [ 2876760 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: JAC Bug Workflow [ 2737963 ] | New: JAC Bug Workflow v2 [ 2804450 ] |
Remote Link | New: This issue links to "PSR-52 (Bulldog)" [ 383605 ] |
Symptom Severity | Original: Critical [ 14430 ] | New: Severity 1 - Critical [ 15830 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2392151 ] | New: JAC Bug Workflow [ 2737963 ] |
Remote Link | New: This issue links to "Page (Confluence)" [ 363839 ] |
Labels | Original: affects-server aspose loyalty pdf-generation | New: affects-server aspose l1l2 loyalty pdf-generation |
Remote Link | New: This issue links to "Page (Bulldog)" [ 328942 ] |