500 Internal Server Error - error java.lang.OutOfMemoryError PermGen space/servlet error
Application throws the following:
500 Internal Server Error
Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
When reviewing logs I found:
$LOG_HOME/ora/10.1.3/j2ee/oacore/oacore_default_group_1/application.log
14/04/22 08:54:36.790 html: Servlet error
java.lang.OutOfMemoryError: PermGen space
I found a few different potential solutions on MOS but want to be sure increasing the MaxPermSize is the best first approach. The following are current settings in the $CONTEXT_FILE that show MaxPermSize:
<forms_jvm_start_options oa_var="s_forms_jvm_start_options">-server -verbose:gc -Xmx256M -Xms64M -XX:MaxPermSize=128M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB -XX:+UseParallelGC -XX:ParallelGCThreads=2 -Djava.security.policy=$ORACLE_HOME/j2ee/oacore/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false -Doracle.security.jazn.config=/u06/cobuateb/app/COBUATEB/inst/apps/COBUATEB_cbeapn0102/ora/10.1.3/j2ee/forms/config/jazn.xml</forms_jvm_start_options>