You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Aaron Robinson <aa...@hotmail.com> on 2003/06/04 18:07:51 UTC

Out of memory when using maven jar

I am getting the following memory when trying to run maven jar - I've got a 
gig of mem and there's nothing else running

|  \/  |__ Jakarta _ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-beta-9-SNAPSHOT


java:prepare-filesystem:

java:compile:
    [javac] Since fork is true, ignoring compiler setting.
    [javac] Compiling 925 source files to C:\Data\Banana\target\classes
    [javac] Since fork is true, ignoring compiler setting.
    [javac]
    [javac]
    [javac] The system is out of resources.
    [javac] Consult the following stack trace for details.
    [javac] java.lang.OutOfMemoryError

BUILD FAILED
Compile failed; see the compiler error output for details.
Total time:  19 seconds

TIA
Aaron

_________________________________________________________________
Stay in touch with absent friends - get MSN Messenger 
http://www.msn.co.uk/messenger


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


Re: Out of memory when using maven jar

Posted by Alexey Demakov <de...@ispras.ru>.
by default in maven.bat
SET MAVEN_DEFAULT_OPTS="-Xmx160m"
-> jvm use only 160MB

try to set environment variable MAVEN_OPTS to something like
SET MAVEN_OPTS="-Xmx256m"
when running maven

Best regards,
Alexey
---
Alexey Demakov, ISP RAS
www: http://redverst.ispras.ru
e-mail: demakov@ispras.ru
ICQ 740187

----- Original Message ----- 
From: "Aaron Robinson" <aa...@hotmail.com>
To: <us...@maven.apache.org>
Sent: Wednesday, June 04, 2003 8:07 PM
Subject: Out of memory when using maven jar


> I am getting the following memory when trying to run maven jar - I've got a 
> gig of mem and there's nothing else running
> 
> |  \/  |__ Jakarta _ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0-beta-9-SNAPSHOT
> 
> 
> java:prepare-filesystem:
> 
> java:compile:
>     [javac] Since fork is true, ignoring compiler setting.
>     [javac] Compiling 925 source files to C:\Data\Banana\target\classes
>     [javac] Since fork is true, ignoring compiler setting.
>     [javac]
>     [javac]
>     [javac] The system is out of resources.
>     [javac] Consult the following stack trace for details.
>     [javac] java.lang.OutOfMemoryError
> 
> BUILD FAILED
> Compile failed; see the compiler error output for details.
> Total time:  19 seconds
> 
> TIA
> Aaron
> 
> _________________________________________________________________
> Stay in touch with absent friends - get MSN Messenger 
> http://www.msn.co.uk/messenger
> 
> 
> ---------------------------------------------------------------------
> 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