jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul.Lewandow...@kohls.com
Subject Re: Garbage collection
Date Mon, 04 Dec 2006 14:41:32 GMT
We ran into similar issues when first starting to use JCS.  The underlying
issue for us was that the remote cache uses RMI calls.  When RMI is in use,
the JVM may automatically trigger full GC's every 60 seconds as the
default; at least under our JDK 1.3.1...not sure about JDK 1.5 but I
believe they may have changed this to the values I will list below in the
JVM parameters that we added...you can tell by examining the GC consecutive
cycles...if they are exactly 60 seconds apart, every 60 seconds, then if
you add the parameters below you may see an improvement:


Hope this helps.


             "Al Forbes"                                                   
             mail.com>                                                  To 
             12/03/2006 04:30                                           cc 
                                       Garbage collection                  
             Please respond to                                             
             "JCS Users List"                                              


I have a remote cache setup with a memory+disk cache, pure memory, and
a mysql cache (0 memory). This uses the latest JCS jcs-
in JDK1.5.

After starting the times for a "Full" grabage collection get longer
and longer. Eventually after about 10-12 days I need to restart the
remote cache. Also when the full garbage collection runs it uses more
and more CPU. Memory usage remains fairly constant (round 600M), and
the incremental collections are fairly small 0.02 secs. I wonder if
anyone these has seen the same thing, or has any better suggestions
for the garbage collection.

Full collection:
559228.304: [Full GC 559228.304: [CMS: 214224K->171110K(393216K),
1.2718260 secs] 328232K->171110K(524224K), [CMS Perm :
8565K->8540K(16384K)] icms_dc=0 , 1.2720400 secs]

I currently have the garbage collection configured to:

   MEMUSE="-Xms512m -Xmx1024m"
   MEMUSE=" $MEMUSE -XX:+UseConcMarkSweepGC \
     -XX:NewSize=128m -XX:MaxNewSize=128m \
     -XX:+CMSIncrementalMode \
     -XX:+CMSIncrementalPacing \
     -XX:CMSIncrementalDutyCycleMin=0 \
     -XX:CMSIncrementalDutyCycle=10 \
     -XX:+PrintGCDetails \
     -XX:+PrintGCTimeStamps \
     -Xloggc:../logs/gc.log \


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

This is a transmission from Kohl's Department Stores, Inc.
and may contain information which is confidential and proprietary.
If you are not the addressee, any disclosure, copying or distribution or use of the contents
of this message is expressly prohibited.
If you have received this transmission in error, please destroy it and notify us immediately
at 262-703-7000.

Internet and e-mail communications are Kohl's property and Kohl's reserves the right to retrieve
and read any message created, sent and received.  Kohl's reserves the right to monitor messages
to or from authorized Kohl's Associates at any time
without any further consent.

View raw message