Table of Contents

OC4J - Memory Allocation

About

How to allocate enough Java Memory in Oracle Containers for Java OC4J to run for instance Oracle BI Publisher.

Steps

To allocate additional memory for OC4J:

OracleBI_HOME/oc4j_bi/bin/oc4j -stop

Allocate a minimum of 256 MB of memory by increasing the permanent generation memory to 128m in addition to the regular heap size.

set JVMARGS=-Djava.library.path=D:\OracleBI\server\Bin;D:\OracleBI\web\bin -DSAROOTDIR=D:\OracleBI 
-DSADATADIR=D:\OracleBIData %OC4J_JVM_ARGS%

-XX:MaxPermSize=128m -Xmx512m

Possible other configurations

-XX:MaxPermSize=128m -Xmx512m  
-XX:MaxPermSize=256m -Xmx1024m 
-XX:MaxPermSize=512m -Xmx2048m