[fedora-java] default vm memory settings for fedora eclipse

Thomas Fitzsimmons fitzsim at redhat.com
Fri Oct 5 13:57:23 UTC 2007


Andrew Haley wrote:
> Andrew Overholt writes:
>  > * Søren Mathiasen <soren at schantz.com> [2007-09-11 03:55]:
>  > > 
>  > > Could be nice if the eclipse startup script contained some code to
>  > > detect the memory size, and according to that set the permsize to
>  > > mem/10 and Xms and Xmx to mem/2 or something close to that.
>  > 
>  > Yeah, but we don't have and don't want to have a wrapper script.  I
>  > guess we could add it into the binary launcher ...
> 
> I think we should just change the limits.  For example, it's a fairly
> trivial matter to change the default MaxPermSize in
> hotspot/src/cpu/x86/vm/c2_globals_x86.hpp from the current
> 
> define_pd_global(uintx, MaxPermSize, ScaleForWordSize(64*M));
> 
> to something more suitable.  Linux doesn't actually allocate memory
> until it's used, so I'm not convinced that the "keep the limit small
> for users with small memory" actually applies.
> 
> So, why don't I just patch IcedTea to use your values as defaults?

I'd rather MaxPermSize be disabled entirely.  Upping the limit just puts 
off the OOM JVM crash, when really the kernel should be left to handle 
memory pressure.

Tom




More information about the fedora-devel-java-list mailing list