[Building Sakai] 2.6.2 java heap space error

Steve Swinsburg steve.swinsburg at gmail.com
Tue Apr 13 16:57:11 PDT 2010


Here's my build setup:

OS X 10.6.3
Maven 2.2.1
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)

export MAVEN_OPTS='-Xms256m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=128m'

I've never had a need to go above these figures so it is unlikely that increasing them will do much for you.

Make sure you are exporting them though, can you see them in the list if you issue a 'printenv' from the Terminal? If not, add export before the variable as above, or export MAVEN_OPTS afterwards.

cheers,
Steve



On 14/04/2010, at 6:06 AM, Branden Visser wrote:

> I recently had trouble building trunk when I had -XX:MaxPermSize=128m. I 
> bumped it up to 256m and it built fine. These are my current opts:
> 
> MAVEN_OPTS='-Xms384m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=256m'
> 
> My maven version is 2.2.1.
> 
> Hope that helps,
> Branden
> 
> Boyd, Amy E wrote:
>> Is anyone able to successfully build 2.6.x with Maven 2.2.0?
>> 
>> -----Original Message-----
>> From: sakai-dev-bounces at collab.sakaiproject.org [mailto:sakai-dev-bounces at collab.sakaiproject.org] On Behalf Of Aaron Zeckoski
>> Sent: Tuesday, April 13, 2010 2:51 PM
>> To: Boyd, Amy E
>> Cc: (sakai-dev at collab.sakaiproject.org)
>> Subject: Re: [Building Sakai] 2.6.2 java heap space error
>> 
>> I am using these settings with no problems on OSX. (mvn 2.0.10)
>> MAVEN_OPTS="-Xms128m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=172m"
>> 
>> I can build 2.6 and 2.7/trunk without issue.
>> -AZ
>> 
>> 
>> On Tue, Apr 13, 2010 at 8:36 PM, Boyd, Amy E <amyboyd at txstate.edu> 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"
>>> 
>> 
>> 
>> 
> _______________________________________________
> 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 --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3689 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100414/76e2c052/attachment.bin 


More information about the sakai-dev mailing list