[Building Sakai] 2.6.2 java heap space error

Anthony Whyte arwhyte at umich.edu
Tue Apr 13 12:55:58 PDT 2010


Here is what I run:

Mac OS X 10.6.3
Java 1.6.0_17-b04-248-10M3025
Maven 2.2.1

export MAVEN_OPTS='-Xms512m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=128m'

Tomcat setenv.sh

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'


*  -Dsun.lang.ClassLoader.allowArraySyntax=true is not required when running Java 1.5.

Cheers,

Anth



On Apr 13, 2010, at 3:36 PM, Boyd, Amy E wrote:

> I have tried both of these suggestions to no avail (upping the Xmx value and adding -Dfile.encoding=UTF-8 to the MAVEN_OPTS variable.
>  
> Is there something else that could be causing this?  I’m using java version 1.5.0_19 and wondering if that’s the problem?  Should I be using 1.5.0_18 instead?  I did read that there were problems with versions < 18 but haven’t heard anything about 19.
>  
>  
>  
> From: jonespm at gmail.com [mailto:jonespm at gmail.com] On Behalf Of Matthew Jones
> Sent: Tuesday, April 13, 2010 10:54 AM
> To: Boyd, Amy E
> Cc: (sakai-dev at collab.sakaiproject.org)
> Subject: Re: [Building Sakai] 2.6.2 java heap space error
>  
> I would just keep increasing the Xmx value until it compiles. This was discussed on sakai-dev a few weeks ago. A comment from Alan.
>  
> builds.sakaiproject.org uses
>  
> "-Xms1024m -Xmx1024m -Xss600k -XX:MaxPermSize=256m for the JVM Options with properties maven.test.skip=true (for the time being)"
>  
> http://n2.nabble.com/Building-Sakai-Tinkering-with-Hudson-again-tp4756386p4756461.html
> 
> Here's a blog post also mentioning this:
> http://goo.gl/VOed
>  
> Currently I'm still able to build at 512, but might need to bump it up soon too.
>  
> -Matthew
>  
> On Tue, Apr 13, 2010 at 11:13 AM, Boyd, Amy E <amyboyd at txstate.edu> wrote:
> Wondering if anyone out there can help me with this.  We are merging 2.6 with our local changes, and I can’t seem to build.  All of the folders/tools will build individually, but from the src directory, I get: java.lang.OutOfMemoryError: Java heap space.
>  
> Running java 1.5.0_19
> Apache Maven 2.2.0
> OSX snow leopard
>  
>  
>  
> My MAVEN_OPTS is set to -Xms256m -Xmx768m -XX:PermSize=64m -XX:MaxPermSize=128m.  I’ve played with those numbers some but can’t seem to get rid of the error.  Is there something else that could be causing it? This has been going on for several days now and I’m out of ideas at this point.
>  
> Any help is appreciated!!!
>  
> Thanks –
> Amy
>  
> 
> _______________________________________________
> 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/20100413/fac1fe3e/attachment.html 


More information about the sakai-dev mailing list