Connexxion : Connecting Life with Technology

Byte by Byte Impressions on Technology, People and Process !

QuickTip: Setting Java Heap Size for Ant

Posted by vikashazrati on Thursday, March 13, 2008

Today once I started getting ‘Not enough memory’ while creating the build of a huge project using Ant.

The easy way to increase the heap size is

set ANT_OPTS=”-Xms512m -Xmx512m”

For me it worked without the quotes
set ANT_OPTS=-Xms512m -Xmx512m

For setting up the Java Heap size for other app servers and frameworks refer to this link.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>