Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Also need -XX:MaxPermSize=128m

...

To increase the memory available to Maven, the environment variable MAVEN_OPTS should be set to the value -Xmx1024m -XX:MaxPermSize=128m, or more depending on the amount of memory you have available on your machine.

...

No Format
export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m"

This is the equivalent command in csh. Add this to your ~/.cshrc file to have this setting available in all your sessions.

No Format
setenv MAVEN_OPTS "-Xmx1024m -XX:MaxPermSize=128m"

Finally, if you are using Windows, then this command can be used from the command prompt.

No Format
set MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m"

To make this variable permanent on Windows, use the Control Panel -> System dialog. Select the Advanced tab and click Environment Variables. Under the System Variables table, click New. Type MAVEN_OPTS for the Variable name and -Xmx1024m -XX:MaxPermSize=128m for the Variable value.