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

Chris Andrews wolfie at wolfie.me
Mon Apr 11 15:15:17 BST 2011


On Monday, 11 April 2011 at 14:32, Philip Boulain wrote:
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
> 
And running it from the command line with -Xmx2g has got it running without crashing out. Cheers! 

Thanks to Marcus's pointer, I found the OS X Java Preferences, but you can't set the maximum heap size from there, at least on OS X 10.5.8, which is what we have on the Mac Pro.

Chris 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/osx-users/attachments/20110411/96c58fcb/attachment.html 


More information about the Osx-users mailing list