Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Out of Memory Error running ANT
Out of Memory Error running ANT [message #20224] Mon, 12 May 2003 18:24 Go to next message
Eclipse UserFriend
My ANT_OPTS is set to -Xmx256M -Xms256M since ANT runs out of memory when
executing our build script. The build script was added to Eclipse and the
OOME is back. How do we set the JVM options to ANT?

TIA,

Rod
Re: Out of Memory Error running ANT [message #20229 is a reply to message #20224] Mon, 12 May 2003 18:46 Go to previous messageGo to next message
Eclipse UserFriend
Tried setting vmargs -Xmx256M -Xms256M to Eclipse but that had no effect:
does not surprise me since ANT is probably forked. For some reason the
ANT_OPTS setting is not effective when running an ANT script within Eclipse.
Re: Out of Memory Error running ANT [message #20233 is a reply to message #20229] Mon, 12 May 2003 19:11 Go to previous messageGo to next message
Eclipse UserFriend
Ant is not forked in 2.1. Adjusting the heap for the Eclipse VM is the way
to go.

ANT_OPTS only makes sense once you can run Ant in a separate VM.
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=24129 for the current
state of this

HTH
Darins

"Rod Macpherson" <rmacpherson@verilet.com> wrote in message
news:b9p87o$l42$1@rogue.oti.com...
> Tried setting vmargs -Xmx256M -Xms256M to Eclipse but that had no effect:
> does not surprise me since ANT is probably forked. For some reason the
> ANT_OPTS setting is not effective when running an ANT script within
Eclipse.
>
>
Re: Out of Memory Error running ANT [message #20241 is a reply to message #20233] Mon, 12 May 2003 19:34 Go to previous message
Eclipse UserFriend
Cool, that worked but the first time I tried it I supplied vmargs without
the leading dash. Did not complain but rather quietly ignored the setting.
After adding the dash on vmargs everything compiled (all 1640 files).
Previous Topic:Must the Package Explorer be a flat list?
Next Topic:Passing JVM Arguments to External Tools
Goto Forum:
  


Current Time: Thu May 08 23:44:02 EDT 2025

Powered by FUDForum. Page generated in 0.04601 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top