Increasing the memory for the ANT process
You can give custom JVM Arguments to the ANT process. See
here
for more details.