Output Post Processor java heap size issue for larg output reports. RESOLVED


Hi,

During running long report in EBS R12.2 usually give below error and here the solution, I used multiple times and it works.

Error:

java.lang.OutOfMemoryError: Java heap space
at oracle.jdbc.driver.T4CCallableStatement.allocateTmpByteArray(T4CCallableStatement.java:259)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:204)
at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1111)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3954)
at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:9353)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1539)
at oracle.apps.fnd.cp.opp.OPPAQMonitor.waitForMessage(OPPAQMonitor.java:435)
at oracle.apps.fnd.cp.opp.OPPAQMonitor.run(OPPAQMonitor.java:120)
at java.lang.Thread.run(Thread.java:724)
[1/16/17 6:36:14 AM] [53353:RT1529751] Output file was found but is zero sized - Deleted
[1/16/17 6:36:14 AM] [UNEXPECTED] [53353:RT1529751] java.lang.reflect.InvocationTargetException 




The error occurs:
- when the Output Post Processor does not have sufficient heap size per process defined to handle the large report,
- when processing large reports during peak utilization times,
- when there are coding errors in the data template
- or when memory leaks requiring patching for more current code.

You can use these steps to prevent JAVA memory errors:


1. in XML Publisher Administrator responsibility navigate to Administration > Configuration

- under : Properties -> General -> set a temporary directory

This directory should be at least 5 times larger than the largest anticipated data file.

Support recommends the directory to be at least 5GB.



2. in XML Publisher Administrator responsibility navigate to Data Definition

Although the scalable feature of the XSLT can be set at the Site level, it is recommended to enable it rather at the Data Definition level for those concurrent programs that are expected to produce large XML data files.

Navigation Path : XML Publisher Administrator responsibility

- query the data definition used by the report with large data

- on the View Data Definition page select Edit Configuration button

- set 'Use XML Publisher's XSLT processor' to True

- set 'Enable scalable feature of XSLT processor' to True

- set 'Enable XSLT runtime optimization' to True

Note that these property values, when set at the Data Definition level, takes precedence over values set at the Site level.



3. Then, in System Administrator resp, navigate to Profile > System

- set Concurrent:OPP Process Timeout = 43200

- set Concurrent:OPP Response Timeout = 43200

(these values are for 12 hours in seconds)


4. Restart the Concurrent Managers.

5a. Determine the heap size per OPP process:

select DEVELOPER_PARAMETERS from FND_CP_SERVICES

where SERVICE_ID = (select MANAGER_TYPE from FND_CONCURRENT_QUEUES

where CONCURRENT_QUEUE_NAME = 'FNDCPOPP');

(the default is: J:oracle.apps.fnd.cp.gsf.GSMServiceController:-mx512m)



5b. You can increase the heap space per process, in multiples of 512,

to the LIMITATION of the JAVA capabilities on the concurrent SERVER. The FNDOPP concurrent manager runs 32-bit java which can be maximized to 2GB (2048), for 64 bit systems the maximum recommendation is 3072:

update FND_CP_SERVICES

set DEVELOPER_PARAMETERS = 'J:oracle.apps.fnd.cp.gsf.GSMServiceController:-mx2048m'

where SERVICE_ID = (select MANAGER_TYPE from FND_CONCURRENT_QUEUES

where CONCURRENT_QUEUE_NAME = 'FNDCPOPP');

6. Restart the Concurrent Managers.


For a documented reference, please see the following notes:

note:1399454.1 - Tuning Output Post Processor (OPP) to Improve Performance
note:1982181.1 - How to Resolve Output Post Processor Giving Errors On Large Reports?
Investigating BI Publisher Errors such as Acct Analysis Report Ends In Java Heap Error ( Doc ID 876227.1 )
Sizing BIP Components To Handle Large Volumes of Data with E-Business Suite XML Publisher / BI Publisher ( Doc ID 1630732.1 )

Comments

Popular posts from this blog

RMAN backup Status (Remaining Time and Percentage)

EBS R12.2 Autoconfig Failed. Resolved

Cleaning nodes in EBS databae.