Issues with ANT and Out of memory error
Finally my macbook arrived and I got everything set up and started working (Yes, I switched finally ;)). In one of my projects I have to compile a large flex project quite often, so I use ANT directly in the shell.
On Windows it was never a problem, but in OS X I always got: “java.lang.OutOfMemoryError: Java heap space”. After quite a journey through the depths of the web I found the place where to increase the memory size and I thought that’s might be interesting for you:
Just create a file called ant.conf in /etc (Use sudo to create the file) and paste this line: ANT_OPTS=’-Xmx1024m -XX:MaxPermSize=128m’ Done!


Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">
Trackback this post | Subscribe to the comments via RSS Feed