Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
similar to… – patrix Sep 7 '12 at 10:50
up vote 2 down vote accepted

This should do the trick:

  1. Go to Applications / Utilities and open the Java Preferences.
  2. Select the Java version you're interested in.
  3. Hit Options and add the Heap size argument, which is -Xmx followed by amount of memory you want it to have. (e.g. -Xmx1024).
share|improve this answer
i just tried your method , everything's fine but when i open the java preferences there's is no "Option" button. Thank you Running with a Macbook pro 13" , Os 10.8.3 , 2,5 GHz Intel Core i5, 8go 1600n MHz DDR3 Java 7 Maj 17. – Ismael Boukhars Apr 7 '13 at 13:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.