tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Java process killed by oom-killer in Ubuntu
Date Tue, 12 Jun 2012 13:50:58 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pid,

On 6/12/12 5:47 AM, Pid wrote:
> On 11/06/2012 20:15, Christopher Schultz wrote:
>> Also, your previously-posted configuration seems a little
>> insane:
>> 
>>> Xms6g -Xmx6g -XX:NewSize=4G -XX:MaxNewSize=4G
>>> -XX:SurvivorRatio=6 -XX:MaxPermSize=512M
>>> -XX:-UseConcMarkSweepGC -XX:+UseStringCache 
>>> -XX:+HeapDumpOnOutOfMemoryError 
>>> -XX:HeapDumpPath=/home/example/logs
>> 
>> -Xmx6g and NewSize=4G? Plus 0.5G for PermGen?
> 
> I think you'll run into trouble setting the NewSize that large. 
> There's a reason that the NewRatio works the way it does.
> 
> Sun advice always used to be "keep the eden size between 1/4th and
> 1/3rd the maximum heap size".  You are specifying 2/3rd the max
> heap.

+1

I don't know what happens during a collection if the survisor space is
too small for all the objects being promoted from eden... does the MM
just randomly promote objects to the old space?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/XSUIACgkQ9CaO5/Lv0PCPRQCgoFB7X/UJ51vB2VTFUuRuKR7a
SBEAn3UW0vq1Kp9mdIREGGmVYqHiREIb
=M69J
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message