Since the default PSPermGen size in OAS is small, you may need to increase the PSPermGen size of the Java heap to at least 128 megabytes. Below are the minimum memory arguments you must specify; it's okay if your OAS environment specifies higher values:
Google shows these options for revising the memory options for Java in OC4j:
If using an OPMN managed environment, you must revise the $ORACLE_HOME/opmn/conf/opmn.xml file.
Revise the shell script that starts OC4J:
These options were extracted from Oracle® Containers for J2EE Configuration and Administration Guide, 10g Release 3 (10.1.3). A link to the page may be found here: http://docs.oracle.com/cd/B25221_03/web.1013/b14432/diagnosis.htm#sthref509