[OSX-Users] Re: Java heaps on OS X, and how to make them bigger.

Philip Boulain prb at ecs.soton.ac.uk
Mon Apr 11 14:32:40 BST 2011


On 11/04/2011 14:16, Chris Andrews wrote:
> I've been told that there is a way to increase the heap size of a Java 
> app from the command line

It's amazing that in this day and age JAVA still can't sort this out 
dynamically. Oh the myriad stupid costs of lazily smothering everything 
in garbage collection.

Anyway, you want -Xmx2g or whatnot. (Apparently you can also set this in 
the Java Control Panel, but I'm not sure where that lives on OS X.)

http://javahowto.blogspot.com/2006/06/6-common-errors-in-setting-java-heap.html

-- 
| Philip Boulain   PhD student | Doing linearscans over an associative |
| IAM, ECS, Uni of Southampton | array is like trying  to club someone |
| http://zepler.net/~lionsphil | to death with a loaded Uzi. --L. Wall |


More information about the Osx-users mailing list