Skip navigation

Tag Archives: Java JVM Heap Size Increase OS X

If you’re using terminal in conjunction with Maven, the easiest way to increase the heap size on your JVM using OS X is as follows:

1) Using Sudo mode, open up you bash profile (mine lives at ‘/etc/profile’)
2) Add “MAVEN_OPTS=’-Xms256M -Xmx512M’; export MAVEN_OPTS;”
3) Save your profile.
4) Open a new shell and ensure the MAVEN_OPTS var exists by using the “set” command and searching for MAVEN_OPTS.
5) Enjoy your java.

Peace!

Advertisements