Increasing Heap Size While Building With Ant

February 12, 2008 at 11:54 am (Java)

Things are easy to manage memory while building applications using java.exe.

But while using ant for building big codes, we need to set the memory limit using a parameter ANT_OPTS

just set the above thing in environment variables and give the size as the value in the following fashion to get things going.


eg. set ANT_OPTS =-Xmx512m

in unix – setenv ANT_OPTS -Xmx768m

Permalink 1 Comment