What Sakai Does when You run out of Memory

Sakai will not start up with the default JVM settings. You need the following:
[csev@s-sakai-1 ~]$ grep OPT .bash_profile
JAVA_OPTS=’-Xmx512m -Xms512m -XX:PermSize=16m -XX:MaxPermSize=128m -XX:NewSize=128m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC’ ; export JAVA_OPTS
Here is the message you get when you forget this:
INFO: Deploying web application archive sakai-help-tool.war
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: java.lang.OutOfMemoryError: PermGen space
Exception in thread “QuartzScheduler_QuartzSchedulerThread” java.lang.OutOfMemoryError: PermGen space
Exception in thread “QuartzScheduler_QuartzScheduler-s-sakai-1.dmc.dc.umich.edu_MisfireHandler” java.lang.OutOfMemoryError: PermGen space