[Building Sakai] 2.7 Install (JAVA_OPTS)

Steve Swinsburg steve.swinsburg at gmail.com
Thu Mar 18 23:54:53 PDT 2010


Hi Warwick,

Yes you need to increase the memory available to Maven via  MAVEN_OPTS. Maven is used to build.

cheers,
Steve




On 19/03/2010, at 4:39 PM, Warwick Chapman wrote:

> Oh, something I noticed, as per http://confluence.sakaiproject.org/display/DOC/Install+Guide+-+Source+Install+(2.6), MAVEN_OPTS should be set to:
> 
> '-Xms256m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=128m'
> 
> Does that affect the compile?
> 
> -- Warwick Bruce Chapman | +27 83 7797 094 | http://warwickchapman.com
> 
> 
> 2010/3/19 warwickchapman <warwickchapman at gmail.com>
> Stephen
> 
> My MaxPermSize is set to 512 but I got this error while compiling: 
> 
> java.lang.OutOfMemoryError: PermGen space
> 
> I have increased the VM's memory to 4096M and increased Xms and Xmx to 2048:
> 
> # set | grep JAVA
> JAVA_HOME=/usr/lib/jvm/java-6-sun
> JAVA_OPTS='-server -Xms2048m -XmxR2048 -XX:PermSize=128m -XX:MaxPermSize=512m -XX:NewSize=192m -XX:MaxNewSize=384m -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Djava.awt.headless=true -Dhttp.agent=Sakai -Dsakai.demo=true -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false -Dsun.lang.ClassLoader.allowArraySyntax=true'
> 
> Must I increase MaxPermsize?
> 
> -- Warwick Bruce Chapman | +27 83 7797 094 | http://warwickchapman.com
> 
> 
> On Thu, Mar 18, 2010 at 11:12 AM, Stephen Marquard <stephen.marquard at uct.ac.za> wrote:
> For your JAVA_OPTS, on an 8G server you should allocate more RAM to the JVM, e.g. our production settings (on 8G servers) are:
> 
>  -Xms5000m -Xmx5000m -Xmn1g -XX:MaxPermSize=512m
> 
> It may be possible to make this bigger, but be careful not to make it so big that the java process starts using swap. For your usage levels, 5G heap is plenty.
> 
> Cheers
> Stephen
> 
> >>> Warwick Chapman <warwickchapman at gmail.com> 3/17/2010 7:03 PM >>>
> Hi All
> 
> I am doing my first ever install of Sakai, intended to be used by a
> community of 3000-5000 people.
> 
> I have prepared a server with 8G RAM and 750G drives with two Xen VMs.
> 
> One the first VM, I intend running the application stack and on the second
> VM, the database.  The intention here is that if the project grows beyond
> the capability of this piece of hardware, I will move one of the VMs onto
> another server.
> 
> In case it matters, Dom0 is 64-bit Centos 5.4 and the two DomU's (VMs) are
> 64-bit Debian Lenny 5.0.4
> 
> So, I plan to follow
> http://confluence.sakaiproject.org/display/DOC/Install+Guide+-+Source+Install+(2.6)with
> the following adjustments for 2.7:
> 
> 1. I will checkout the 2.7.x branch instead of the latest 2.6 stable tag:
> svn co https://source.sakaiproject.org/svn/sakai/branches/sakai-2.7.x/sakai-2.7.x
> 
> 2. I will set my JAVA_OPTS to:
> export JAVA_OPTS='-server -Xms512m -Xmx1024m -XX:PermSize=128m
> -XX:MaxPermSize=512m -XX:NewSize=192m -XX:MaxNewSize=384m -verbose:gc
> -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Djava.awt.headless=true
> -Dhttp.agent=Sakai -Dsakai.demo=true
> -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false
> -Dsun.lang.ClassLoader.allowArraySyntax=true'
> 
> (Anthony suggests I do not need Strict Quote Escaping, is it safe to leave
> it in there since it appears it will be required going forward)
> 
> 3. <insert your adjustment here>
> 
> -- Warwick Bruce Chapman | 083 7797 094 | http://warwickchapman.com
> 
> 
> 
> ______________________________________________________________________________________________
> 
> UNIVERSITY OF CAPE TOWN
> 
> This e-mail is subject to the UCT ICT policies and e-mail disclaimer published on our website at http://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable from +27 21 650 4500. This e-mail is intended only for the person(s) to whom it is addressed. If the e-mail has reached you in error, please notify the author. If you are not the intended recipient of the e-mail you may not use, disclose, copy, redirect or print the content. If this e-mail is not related to the business of UCT it is sent by the sender in the sender's individual capacity.
> 
> _____________________________________________________________________________________________________
> 
> 
> 
> _______________________________________________
> 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/20100319/a2111c4b/attachment.html 


More information about the sakai-dev mailing list