Confluence unresponsive after viewing page with Office Connector macros
問題
Confluence becomes unresponsive, and may hit an OutOfMemory Error. The following stack traces appear in the logs:
2010-04-05 15:36:01,776 ERROR [TP-Processor30] [[Catalina].[localhost].[/wiki].[action]] log Servlet.service() for servlet action threw exception
-- url: /wiki/display/xxxxx | userName: casino | referer: https://localhost/wiki/pages/editpage.action?pageId=4162084
java.lang.OutOfMemoryError: Java heap space
at com.opensymphony.module.sitemesh.html.util.CharArray.grow(CharArray.java:267)
at com.opensymphony.module.sitemesh.html.util.CharArray.append(CharArray.java:117)
at com.opensymphony.module.sitemesh.html.util.CharArray.append(CharArray.java:102)
at com.opensymphony.module.sitemesh.parser.FastPageParser.writeTag(FastPageParser.java:668)
at com.opensymphony.module.sitemesh.parser.FastPageParser.internalParse(FastPageParser.java:371)
at com.opensymphony.module.sitemesh.parser.FastPageParser.parse(FastPageParser.java:95)
The error will contain a referral to the actual page that caused this:
referer: https://localhost/wiki/pages/editpage.action?pageId=4162084
診断
Inspect the page contents for any macros that use viewxls
or any other macros that could be reference a very large document.
原因
A referenced resource is larger than Confluence can handle.
ソリューション
As a short term fix, any occurrence of this error will require a restart of Confluence as an immediate correction.
Choose one of the following long-term resolutions:
- Increase the amount of memory allocated to Confluence if your system is powerful enough.
- Reconsider the document and macros used in that Wiki page. Splitting the document into several other pages could help.
Track a permanent fix for this problem at CONF-17292.