Thanks Aaron for the quick response. We use jcs 1.2.7.6
The cache size is about 5.5 gb. Rest is transient memory generated due to processing. The cache.ccf has the following: ############################################################## ##### Default Region Configuration jcs.default=DC jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes [EMAIL PROTECTED]@ (---2 million) jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache jcs.default.cacheattributes.UseMemoryShrinker=true jcs.default.cacheattributes.MaxMemoryIdleTimeSeconds=-1 jcs.default.cacheattributes.ShrinkerIntervalSeconds=180 jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes jcs.default.elementattributes.IsEternal=true jcs.default.elementattributes.MaxLifeSeconds=-1 jcs.default.elementattributes.IdleTime=1800 jcs.default.elementattributes.IsSpool=true jcs.default.elementattributes.IsRemote=true jcs.default.elementattributes.IsLateral=true ############################################################## ##### Default Region Configuration by the JCS ObjectCache implementations jcs.region.ojbDefaultJCSRegion=DC jcs.region.ojbDefaultJCSRegion.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes jcs.region.ojbDefaultJCSRegion.cacheattributes.MaxObjects=2000000 jcs.region.ojbDefaultJCSRegion.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache jcs.region.ojbDefaultJCSRegion.cacheattributes.UseMemoryShrinker=true jcs.region.ojbDefaultJCSRegion.cacheattributes.MaxMemoryIdleTimeSeconds=-1 jcs.region.ojbDefaultJCSRegion.cacheattributes.ShrinkerIntervalSeconds=60 jcs.region.ojbDefaultJCSRegion.cacheattributes.MaxSpoolPerRun=500 jcs.region.ojbDefaultJCSRegion.elementattributes=org.apache.jcs.engine.ElementAttributes jcs.region.ojbDefaultJCSRegion.elementattributes.IsEternal=true jcs.region.ojbDefaultJCSRegion.elementattributes.MaxLifeSeconds=-1 jcs.region.ojbDefaultJCSRegion.ojbDefaultJCSRegion.elementattributes.IdleTime=1800 jcs.region.ojbDefaultJCSRegion.elementattributes.IsSpool=true jcs.region.ojbDefaultJCSRegion.elementattributes.IsRemote=true jcs.region.ojbDefaultJCSRegion.elementattributes.IsLateral=true # Primary Disk Cache-- faster than the rest because of memory key storage jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes [EMAIL PROTECTED]@ jcs.auxiliary.DC.attributes.MaxPurgatorySize=10000000 jcs.auxiliary.DC.attributes.MaxKeySize=1000000 jcs.auxiliary.DC.attributes.MaxRecycleBinSize=5000 jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=300000 jcs.auxiliary.DC.attributes.ShutdownSpoolTimeLimit=60 --------------------------------- Smuts, Aaron wrote: > > If you have a disk cache configured, then it will try to write the > contents of memory to disk on shutdown. 8gb is a lot of data to write! > > What version of JCS are you using? > >> -----Original Message----- >> From: giriraj [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, January 24, 2007 2:37 PM >> To: jcs-users@jakarta.apache.org >> Subject: JCS shutdown causes JVM hang >> >> >> We have an application that loads up 5.5 gb of cached data. We use >> LRUMemoryCache. Once the cache is loaded, there is processing that > happens >> on the cached data and that ranges upto 7 gb max memory. ( -Xmx=8gb) >> When the processing is done, when we do a System.exit() the shutdown > hook >> is >> called and the application just hangs. I have attached the thread > dump. >> Has >> anyone seen this before or any advise would be helpful. >> >> Thanks >> http://www.nabble.com/file/5912/ErrorLog.txt ErrorLog.txt >> -- >> View this message in context: > http://www.nabble.com/JCS-shutdown-causes- >> JVM-hang-tf3084079.html#a8570883 >> Sent from the JCS - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/JCS-shutdown-causes-JVM-hang-tf3084079.html#a8571705 Sent from the JCS - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]