My Oracle Support Banner

Consolidation Document For Java Heap Space Error (Doc ID 2598803.1)

Last updated on DECEMBER 15, 2019

Applies to:

Oracle Concurrent Processing - Version 11.5.10.2 to 12.2 [Release 11.5 to 12.2]
BI Publisher (formerly XML Publisher) - Version 5.6.3 to 12.2 [Release 5 to 12.2]
Information in this document applies to any platform.
BI Publisher (formerly XML Publisher) - Version 11.5 to 12.2 [Release 11.5 to 12.2]
Oracle Concurrent Processing - Version 12.2.6 to 12.2.6 [Release 12.2]
Oracle Concurrent Processing - Version 12.2.4 to 12.2.4 [Release 12.2]



Purpose

This document is intended for System Administrators. This note is generic in nature and is not designed to address product-specific issues. Individual product data is to be addressed by the product team that owns the XML data.

 The purpose of this document is to outline bugs/patches, notes, knowledge base, and community resources for addressing the error:

"java.lang.OutOfMemoryError: Java heap space"


Causes of the "Java heap space" includes the following:

Note: The JVM is a shared resource in applications so a limited amount of java heap space is available when processing reports. Space is allocated in a manner similar to the SGA of the database. So allocation is based on the amount of heap space in the java pool at the time the report(s) is processed. Smaller reports which can be processed quickly generally are not a concern. However, when processed in bulk the load on the system will increase utilizing vasts amount of space thereby causing bottlenecks when attempting to obtain memory from the java pool. So customers are advised to run bulk loads when less users are utilizing the allocated space or add more RAM space for greater memory capacity and temp space when reports are queued for processing. Reports built with large images will require additional space. So please insure there is adequate temp space and your code is optimized when running large reports/templates.

 

The following is a High Level of areas to isolate that are further detailed in the 'Troubleshooting Section':

To obtain the Output Post Processor log file, follow the navigation below:
1. Select the System Administrator responsibility.
2. Select the menu Concurrent - Manager - Administer.
3. Select the Output Post Processor Service.
4. Select the Processes button.
5. Select Manager Log.
6. The log will contain a java stack error similar to the following:

java.lang.reflect.InvocationTargetException
Caused by: java.lang.OutOfMemoryError: Java heap space
at oracle.xdo.parser.v2.XMLDocument.createNodeFromType(XMLDocument.java:2869)
at oracle.xdo.parser.v2.XMLDocument.createNodeFromType(XMLDocument.java:3000)
at oracle.xdo.parser.v2.XMLDocument.createTextNode(XMLDocument.java:735)
at oracle.xdo.parser.v2.DocumentBuilder.characters(DocumentBuilder.java:553)
at oracle.xdo.parser.v2.NonValidatingParser.reportCharacters(NonValidatingParser.java:1680)
at oracle.xdo.parser.v2.NonValidatingParser.parseText(NonValidatingParser.java:1391)
at oracle.xdo.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1268)
at oracle.xdo.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:338)
at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:285)
at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:289)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:517)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:224)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:177)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
at oracle.apps.psp.effortreporting.EffortReportCP.runProgram(EffortReportCP.java:343)
at oracle.apps.fnd.cp.request.Run.main(Run.java:157)

 

We've identified that you have a java.lang.OutOfMemoryError and it is critical that you address this issue.  There are several known causes for this issue and the comprehensive solutions are listed below:

 

Troubleshooting Steps

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Purpose
 The following is a High Level of areas to isolate that are further detailed in the 'Troubleshooting Section':
Troubleshooting Steps
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.