[Building Sakai] "OutOfMemory: Permgen......" error deploying sakai 2.9.1

Aaron Zeckoski azeckoski at unicon.net
Sat Mar 23 04:01:16 PDT 2013


It should run fine with that amount of ram. My tomcat setenv is this:
export JAVA_OPTS="-server -Xmx1028m -XX:MaxPermSize=320m
-Dcom.sun.management.jmxremote -Djava.awt.headless=true
-Dhttp.agent=Sakai
-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false"

I suggest you drop the NewSize and I also suggest you do NOT set
JAVA_OPTS for your entire server environment but rather set it in the
tomcat setenv.
https://confluence.sakaiproject.org/display/BOOT/Development+Environment+Setup+Walkthrough

You might also consider using jstat or jvisualvm or some other
profiler to monitor the memory and see what is happening.

NOTE: my settings are for a development environment so you will want
to tune the Xmx and possibly other params a bit higher.
-AZ


On Sat, Mar 23, 2013 at 2:35 AM, Ese Egerega <ese at cis.com.ng> wrote:
> Can anyone be of help?
>
> I successfully deployed sakai 2.9.1 on a system with 8gig RAM. I am however
> getting an "OutOfMemory: Permgen......" error when I try to deploy it on a
> server with 4gig RAM.
>
> Going by the documentation sakai should run on a system with 4gig RAM.
> Correct?
>
> My environment variables are as follows:
>
> export JAVA_HOME=/usr/lib/jvm/java-7-oracle
> export PATH=$PATH:$JAVA_HOME/bin
> export MAVEN_HOME=/usr
> export PATH=$PATH:$MAVEN_HOME/bin
> export MAVEN_OPTS="-Xms128m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=256m"
> export CATALINA_HOME=/opt/tomcat
> export PATH=$PATH:$CATALINA_HOME/bin
> export SAKAI_HOME=/opt/tomcat/sakai
> export JAVA_OPTS="-server -Xms512m -Xmx1024m -XX:PermSize=128m
> -XX:MaxPermSize=512m -XX:NewSize=192m -XX:MaxNewSize=512m
> -Djava.awtECHO.headless=true
> -Dhttp.agent=Sakai -Dsakai.home=/opt/tomcat/sakai
> -Dorg.apache.jasperRT.compiler.Parser.STRICT_QUOTE_ESCAPING=false
> -Dsun.lang.ClassLoader.allowArraySyntax=true -Dcom.sun.management.jmxremote"
>
>
>
>
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org
> with a subject of "unsubscribe"



-- 
Aaron Zeckoski - Software Architect - http://tinyurl.com/azprofile


More information about the sakai-dev mailing list