[Building Sakai] "OutOfMemory: Permgen......" error deploying sakai 2.9.1
Steve Swinsburg
steve.swinsburg at gmail.com
Sat Mar 23 20:20:41 PDT 2013
I have found that for 2.9+ builds I needed to increase my heap in MAVEN_OPTS. I generally double what you have set.
cheers,
Steve
On 24/03/2013, at 10:37 AM, Ese Egerega <ese at cis.com.ng> wrote:
> Dear All,
>
> Thanks so much for your help. My server is now up and running (see image below)
>
>
>
> On Sat, Mar 23, 2013 at 2:03 PM, Matthew Jones <matthew at longsight.com> wrote:
> These are the options that should be enough to *start* Sakai on any system. You can either put them in a start script for Sakai or in a file called setenv.sh in the bin directory and they will be used as Aaron mentioned, they look similar to yours. I start it on one with only 2.5G of RAM with those options and use it fine for dev purposes.
>
> https://source.sakaiproject.org/svn/reference/trunk/demo/start-sakai.sh
>
> For a production system you would need a little more -Xmx and possibly -XX:MaxPermSize. (Though that should be more static)
>
>
> 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"
>
>
> _______________________________________________
> 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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130324/7adf766e/attachment.html
More information about the sakai-dev
mailing list