Hi,

you have to set the maximum heap size via the '-Xmx' command line
option.

Until java 1.6 The default value for this option was 64MB, with
1.6 this changed to a dynamic assignement [1]. So the RAM available in
the computer has an impact on the default maximum size. Perhaps this
explains the different results you get.

-Tim

[1]
http://java.sun.com/javase/6/docs/technotes/guides/vm/gc-ergonomics.html

Am Tue, 9 Oct 2007 10:19:53 -0400
schrieb "Pavel Sapozhnikov" <[EMAIL PROTECTED]>:

> Hi so I was trying to build struts2 with maven and I was getting Java
> Heap Space error so the result is Build Failed. Its interesting tho
> because I tried doing this at home on Vista and XP comp and both
> failed at work comp it went fine and it is XP machine. The only
> difference is that I have anti virus installed at home but I don't
> think thats the problem. At worked it worked fine and I didn't have
> to set any MAVEN_OPTS environment variables. So I am just confused I
> dont know what to do. Oh and other difference is that at home I have
> Java 1.6 and at work 5.
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to