[Using Sakai] [Building Sakai] lang.OutOfMemoryError: Java heap space
Noah Botimer
botimer at umich.edu
Thu Aug 14 11:11:20 PDT 2014
You might try something like:
export JAVA_OPTS='-server -Xms6144m -Xmx6144m -XX:PermSize=128m -XX:MaxPermSize=768m
If you are only running one JVM on the server, that will leave plenty for the system and other stuff.
Also, consider running OpenJDK 7. The garbage collection is more self-tuning and tends to handle these larger heaps more gracefully over time.
Thanks,
-Noah
On Aug 14, 2014, at 12:15 PM, Sam Ottenhoff wrote:
>
>
> We have Sakai 2.9.2 with Java 6. This is a CentOS virtual machine with 16 GB of RAM. Here is my JAVA_OPTS:
>
>
>
> export JAVA_OPTS='-server -Xms1024m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=512m
>
>
>
> So you have 16GB of RAM but you're only allowing Sakai's Tomcat JVM to use 1GB! Provide the JVM more memory!
>
> _______________________________________________
> 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-user/attachments/20140814/c2376002/attachment.html
More information about the sakai-user
mailing list