Monday, June 27, 2011

Invalid Heap Size

Was getting the following error when trying to start the OAS server: D:\OAS\opmn\bin>opmnctl startall opmnctl: starting opmn and all managed processes... ==================================================================== opmn id=MYSERVER:6200 1 of 2 processes started. ias-instance id=MYSERVER.XXXX.XXXXX ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ias-component/process-type/process-set: default_group/MYAPP/default_group/ Error --> Process (index=1,uid=809764963,pid=3936) failed to start a managed process after the maximum retry limit Log: D:\OAS\opmn\logs\\default_group~MYAPP~default_group~1.log Here's what the log said: -------- 09/02/17 12:37:26 Start process -------- Error occurred during initialization of VM Incompatible initial and maximum heap sizes specified Cracked open the config file and found the following: D:\OAS\opmn\conf\opmn.xml <data id="java-options" value="-server -mx512M -ms1024M -Xrs -XX:MaxPermSize=256M -XX:AppendRatio=3 -Djava.security.policy=$ORACLE_HOME/j2ee/MYAPP/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false -XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled"/> Fixed it: <data id="java-options" value="-server -mx1024M -ms512M -Xrs -XX:MaxPermSize=256M -XX:AppendRatio=3 -Djava.security.policy=$ORACLE_HOME/j2ee/MYAPP/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false -XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled"/>

No comments:

Post a Comment