Sunday, August 7, 2016

Oracle EBS R12 Report Manager FRM_FO_GENERATOR module: FO Generator - Failed With JAVA HEAP Space Error. Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

Report Manager FRM_FO_GENERATOR module: FO Generator - Failed With JAVA HEAP Space Error. Exception in thread "main" java.lang.OutOfMemoryError: Java heap space 


Error message:
FRM_FO_GENERATOR module: FO Generator

Dec 15, 2009 5:51:27 PM oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig
INFO: oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
Generating FO for the file id = 1096
FO Generation Program Completed at Tue Dec 15 18:34:11 MST 2009
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2786)



Solution :
To implement the solution, please execute the following steps:
FO Generator Concurrent request is failing with Java Heap Size so you need to increase the heap size of the FO Generator program. Please increase the heap size of the FO Generator concurrent program.

Follow these steps to increase the heap size of the FO Generator program. Bounce the Apache, Middle Tier after performing the changes and retest the issue.

To Increase Heap Size of FO Generator concurrent program:
=====================================
1) Navigate to the form System Administrator > Concurrent > Program > Define
2) In this form query the
Program : "FO Generator"
Short Name : "FRM_FO_GENERATOR"
3) In the resulting record check the Executable properties are
Name : "FRM_FO_GENERATOR"
Method : "Java Concurrent Program"
4) In the "Options" field of Executable properties enter the following
java options
-Xmx1024m -Xms256m
and save the record.
It specifies,
-Xmx1024M - Maximum heap size
-Xms256M - Initial heap size

To Increase Heap Size of oacore process:
=======================================
.
1. Locate the file $ORA_CONFIG_HOME/10.1.3/opmn/conf/opmn.xml

2. In the file,
<process-type id="oacore" module-id="OC4J" status="enabled"
working-dir="$ORACLE_HOME/j2ee/home">
<module-data>
<category id="start-parameters">
<data id="java-options" value="-server -verbose:gc -Xmx1024M
-Xms256M -XX:MaxPermSize=160M

oacore java-options
-Xmx1024M - Specifies maximum heap memory.(1024 MB)
-Xms256M - Initial heap memory.(256 MB)
.
Please increase the values to resolve out of memory error.

3.  Bounce the Concurrent Manager, Database Listener, and Apache Server.

4. Retest the issue.

5. Migrate the solution as appropriate to other environments.

6. If the report still fails with the java heap space errors, change parameter Maximum heap size to -Xmx1024M or -Xmx2048m based on your hardware compatibility.