構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Manish Kumar Jaiswal
JVM and GC Settings- Memory Leak Issue
2012/02/23 6:41
答え

Manish Kumar Jaiswal

ランク: Regular Member

投稿: 133

参加年月日: 2008/11/25

最近の投稿

I am facing some memory leak issues at my prodution Servers , In order to solve those I decided to tune my JVM Settings and GC Settings ..,
My Servers are in cloud Enviornment and there are 4 tomcat servers behind an apache loadbalancer , each Server have 4 cores and 34.2 GB of RAM
..hence I have decided to go with following settings

-XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XXemoticonarallelGCThreads=4
-XX:+CMSCompactWhenClearAllSoftRefs -XX:CMSInitiatingOccupancyFraction=85

-server -XX:NewSize=3192m -XX:MaxNewSize=3192m -Xms9G -Xmx9G -XX:MaxPermSize=512m -
XX:SurvivorRatio=6 –XX:TargetSurvivorRatio=90 –XX:MaxTenuringThreshold=15

the settings till now was follwing
-Xms6G -Xmx6G -XX:MaxPermSize=1G -server

Can somebody verify these settings and correct me if I am wrong somewhere (I have still not tried this but want to verify these first!!)

Regards
Manish
Steven Mileham
RE: JVM and GC Settings- Memory Leak Issue
2012/04/18 6:57
答え

Steven Mileham

ランク: New Member

投稿: 10

参加年月日: 2010/11/30

最近の投稿

Looks very similar to the config we've been using (although we're on Weblogic behind the Apache servers)

1-Xms2500m -Xmx2500m -XX:+HeapDumpOnOutOfMemoryError -XX:+DisableExplicitGC -XX: PermSize=512m -XX:MaxPermSize=512m
2-XX:CMSFullGCsBeforeCompaction=1 -XX:ReservedCodeCacheSize=128m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:SurvivorRatio=8
3-XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=31 -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:CMSIncrementalDutyCycleMin=0
4-XX:CMSIncrementalDutyCycle=10 -XX:+CMSClassUnloadingEnabled -XX: ParallelGCThreads=8 -XX:NewSize=1024m -XX:MaxNewSize=1024m


(also, the forums really shouldn't replace : P with a emoticon in a code block, grrr)