You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Kenneth Wood <ke...@e2open.com> on 2005/03/02 15:24:41 UTC
USE ANT_OPTS RE: OutOfMemoryException when compiling a large project
As someone suggested earlier, define ANT_OPTS in your environment
(read the Ant documentation about using ANT_OPTS)
For example, we use
ANT_OPTS="-Xmx1024m -Xms256m"
Then you can compile without the need to use "fork".
>From my build log, compiling more files than your case of 496 files:
javac:
[javac] Compiling 643 source files to ...
-----Original Message-----
From: bugzilla@apache.org [mailto:bugzilla@apache.org]
Sent: Tuesday, March 01, 2005 6:15 PM
To: dev@ant.apache.org
Subject: DO NOT REPLY [Bug 33162] - OutOfMemoryException when compiling
a large project
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG*
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33162>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND* INSERTED IN
THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=33162
jmartin@chem.uga.edu changed:
What |Removed |Added
------------------------------------------------------------------------
----
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From jmartin@chem.uga.edu 2005-03-02 01:15
-------
I used the javac "fork" option with "memoryMaximumSize=800m" and it
worked fine.
Now I feel silly.
Anyone know how to pass to javac -Xmx800m without forking?
--
Configure bugmail:
http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: USE ANT_OPTS RE: OutOfMemoryException when compiling a
large project
Posted by Phil Weighill-Smith <ph...@volantis.com>.
I personally dislike the requirement for environment variables (or other
external inputs) in a build; the build should be self-contained. If
another developer comes along without ANT_OPTS set up and attempts to
build your project they will get the OoM Exception and waste time
tracking the issue down.
I recommend building the required sizes into your script and using fork.
Phil :n.
On Wed, 2005-03-02 at 14:24, Kenneth Wood wrote:
> As someone suggested earlier, define ANT_OPTS in your environment
> (read the Ant documentation about using ANT_OPTS)
>
> For example, we use
>
> ANT_OPTS="-Xmx1024m -Xms256m"
>
> Then you can compile without the need to use "fork".
>
> From my build log, compiling more files than your case of 496 files:
>
> javac:
> [javac] Compiling 643 source files to ...
>
>
> -----Original Message-----
> From: bugzilla@apache.org [mailto:bugzilla@apache.org]
> Sent: Tuesday, March 01, 2005 6:15 PM
> To: dev@ant.apache.org
> Subject: DO NOT REPLY [Bug 33162] - OutOfMemoryException when compiling
> a large project
>
>
> DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG*
> RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> <http://issues.apache.org/bugzilla/show_bug.cgi?id=33162>.
> ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND* INSERTED IN
> THE BUG DATABASE.
>
> http://issues.apache.org/bugzilla/show_bug.cgi?id=33162
>
>
> jmartin@chem.uga.edu changed:
>
> What |Removed |Added
> ------------------------------------------------------------------------
> ----
> Status|NEW |RESOLVED
> Resolution| |FIXED
>
>
>
>
> ------- Additional Comments From jmartin@chem.uga.edu 2005-03-02 01:15
> -------
> I used the javac "fork" option with "memoryMaximumSize=800m" and it
> worked fine.
> Now I feel silly.
>
> Anyone know how to pass to javac -Xmx800m without forking?
>
--
Phil Weighill-Smith <ph...@volantis.com>
Volantis Systems