How to I change the default JVM heap size on OS X?
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).