You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ole Ersoy <ol...@gmail.com> on 2009/02/16 05:19:07 UTC

mvn tomcat:deploy: Out of Memory Error

Hi,

I get the following when running (On linux) mvn tomcat:deploy

[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Java heap space
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.OutOfMemoryError: Java heap space
....


Anyone know how to fix this?

TIA,
- Ole

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


Re: mvn tomcat:deploy: Out of Memory Error

Posted by Ole Ersoy <ol...@gmail.com>.
Super - Thanks - The following did the trick:
export MAVEN_OPTS="-Xms64m -Xmx900m"

Ole

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


Re: mvn tomcat:deploy: Out of Memory Error

Posted by Paul Benedict <pb...@apache.org>.
Perhaps you're running out of memory.... seriously. Set the MAVEN_OPTS
environment variable to something larger than 64M (the default) and
try again.

Example:
set MAVEN_OPTS=-Xms64m -Xmx90m

Paul

On Sun, Feb 15, 2009 at 10:19 PM, Ole Ersoy <ol...@gmail.com> wrote:
> Hi,
>
> I get the following when running (On linux) mvn tomcat:deploy
>
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Java heap space
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.OutOfMemoryError: Java heap space
> ....
>
>
> Anyone know how to fix this?
>
> TIA,
> - Ole
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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