Edit online

If you are working with a large project with extensive metadata or key references, you may need to increase the amount of memory that is allocated for the Java process. You can do this by changing the value of the ANT_OPTS environment variable from a command line for a specific session.

Example: To increase the JVM memory allocation to 1024 MB for a specific session, issue the following command from a command prompt (depending on your operating system):
  • Windows
    set ANT_OPTS=%ANT_OPTS% -Xmx1024M
  • Linux/Mac OS X
    export ANT_OPTS=$ANT_OPTS -Xmx1024M
Tip: To persistently change the memory allocation, change the value allocated to the ANT_OPTS environment variable on your system.