You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ashelton3 <as...@gmail.com> on 2009/06/14 01:38:31 UTC

Increasing Java VM for Maven execution

I can't get my big Maven job to run. The JVM runs out of memory. Is there a
command line argument or setting that will increase the JVM memory for the
mvn command?
-- 
View this message in context: http://www.nabble.com/Increasing-Java-VM-for-Maven-execution-tp24017355p24017355.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Increasing Java VM for Maven execution

Posted by Andreas Christoforides <an...@infusionsoft.com>.
You can use the environment setting named "MAVEN_OPTS" and set the 
minimum and maximum heap space that Maven will use.

Example:

MAVEN_OPTS="-Xms64m -Xmx512m"

ashelton3 wrote:
> I can't get my big Maven job to run. The JVM runs out of memory. Is there a
> command line argument or setting that will increase the JVM memory for the
> mvn command?
>   

-- 
Andreas Christoforides
/Senior Software Engineer/

andreasc@infusionsoft.com <ma...@infusionsoft.com> | 
www.infusionsoft.com <http://www.infusionsoft.com?ls=signature>

<http://www.infusionsoft.com/sigpromo?ls=sigpromo>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Increasing Java VM for Maven execution

Posted by Michael <sg...@gmx.net>.
ashelton3 wrote:
> I can't get my big Maven job to run. The JVM runs out of memory. Is there a
> command line argument or setting that will increase the JVM memory for the
> mvn command?

Set MAVEN_OPTS=-Xmx512m or more in your shell/cmd

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org