How to I change the default JVM heap size on OS X? I am looking for a way to change the default JVM memory settings on OS X, not for a specific application.

And, yes I know that each application can override this.

Currently running Java 1.6 on OS X 10.8
This should do the trick:


Go to Applications / Utilities and open the Java Preferences.
Select the Java version you're interested in.
Hit Options and add the Heap size argument, which is -Xmx followed by amount of memory you want it to have. (e.g. -Xmx1024).