I have no special talent. I'm only passionately curious - Albert Einstein
Ant: Setting Your JVM Memory Options (-Xms -Xmx, etc.) Comment on Ant:  Setting Your JVM Memory Options (-Xms -Xmx, etc.) 0

Ant provides an option to allow you to set your default JVM memory options globally.  On Windows, you must create a bat file titled antrc_pre.bat under your %USERPROFILE% directory.  Ant will read in this file to set the ANT_OPTS values before executing your build file.  Here is the contents of my antrc_pre.bat:

 

set ANT_OPTS=-Xms512m -Xmx1024m


0 comments

Comments are currently disabled

About

David Malone is a Java developer residing in the Twin Cities area.  He has been developing enterprise applications since 2004.  This is his personal blog, as well as his design and development workspace.