[
https://issues.apache.org/jira/browse/JCS-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13495238#comment-13495238
]
Jean-Marc Spaggiari commented on JCS-100:
-----------------------------------------
Hi Thomas,
Application is running under Windows.
Here is the application configuration:
{code}
Properties props = new Properties();
//# DEFAULT CACHE REGION
//# sets the default aux value for any non configured
caches
props.put("jcs.default", "");
props.put("jcs.default.cacheattributes",
"org.apache.jcs.engine.CompositeCacheAttributes");
props.put("jcs.default.cacheattributes.MaxObjects",
"10000");
props.put("jcs.default.cacheattributes.MemoryCacheName",
"org.apache.jcs.engine.memory.lru.LRUMemoryCache");
props.put("jcs.default.elementattributes.IsEternal",
"false");
props.put("jcs.default.elementattributes.MaxLifeSeconds", "86400");
props.put("jcs.default.elementattributes.IdleTime",
"1800");
//props.put("jcs.default.elementattributes.IsSpool",
"true");
//props.put("jcs.default.elementattributes.IsRemote",
"false");
//props.put("jcs.default.elementattributes.IsLateral",
"false");
//# CACHE REGIONS AVAILABLE
//# Regions preconfigured for caching
props.put("jcs.region.robotCache", "DC");
props.put("jcs.region.robotCache.cacheattributes",
"org.apache.jcs.engine.CompositeCacheAttributes");
props.put("jcs.region.robotCache.cacheattributes.MaxObjects", "131072");
props.put("jcs.region.robotCache.cacheattributes.MemoryCacheName",
"org.apache.jcs.engine.memory.lru.LRUMemoryCache");
props.put("jcs.region.robotCache.cacheattributes.UseMemoryShrinker", "true");
props.put("jcs.region.robotCache.elementattributes.IsEternal", "false");
props.put("jcs.region.robotCache.elementattributes.MaxLifeSeconds", "604800");
props.put("jcs.region.robotCache.elementattributes.IdleTime", "1800");
props.put("jcs.region.robotCache.elementattributes.IsSpool", "true");
props.put("jcs.region.robotCache.elementattributes.IsRemote", "false");
props.put("jcs.region.robotCache.elementattributes.IsLateral", "false");
props.put("jcs.region.lastDomainAccessCache", "");
props.put("jcs.region.lastDomainAccessCache.cacheattributes",
"org.apache.jcs.engine.CompositeCacheAttributes");
props.put("jcs.region.lastDomainAccessCache.cacheattributes.MaxObjects",
"1000");
props.put("jcs.region.lastDomainAccessCache.cacheattributes.MemoryCacheName",
"org.apache.jcs.engine.memory.lru.LRUMemoryCache");
props.put("jcs.region.lastDomainAccessCache.elementattributes.IsEternal",
"false");
props.put("jcs.region.lastDomainAccessCache.elementattributes.MaxLifeSeconds",
"60");
props.put("jcs.region.lastDomainAccessCache.elementattributes.IdleTime",
"1800");
props.put("jcs.region.lastDomainAccessCache.elementattributes.IsSpool", "true");
props.put("jcs.region.lastDomainAccessCache.elementattributes.IsRemote",
"false");
props.put("jcs.region.lastDomainAccessCache.elementattributes.IsLateral",
"false");
//# AUXILIARY CACHES AVAILABLE
//# Primary Disk Cache -- faster than the rest because
of memory key storage
props.put("jcs.auxiliary.DC",
"org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory");
props.put("jcs.auxiliary.DC.attributes",
"org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes");
props.put("jcs.auxiliary.DC.attributes.DiskPath",
"robotCache");
props.put("jcs.auxiliary.DC.attributes.MaxPurgatorySize", "131072");
props.put("jcs.auxiliary.DC.attributes.MaxKeySize",
"131072");
props.put("jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount", "32768");
props.put("jcs.auxiliary.DC.attributes.MaxRecycleBinSize", "32768");
props.put("jcs.auxiliary.DC.attributes.OptimizeOnShutdown", "true");
ccm.configure(props);
{code}
I'm usually running about 50 threads accessing the cache at the same time. It's
not easy to reproduce because sometime it's working fine, sometime it's not. I
don't know what's making it failing. When it's blocked, is there any variable I
should look at to help? I'm usually running the application in debug mode on
Eclipse.
Thanks.
> JCS never going out of the dispose methode
> ------------------------------------------
>
> Key: JCS-100
> URL: https://issues.apache.org/jira/browse/JCS-100
> Project: Commons JCS
> Issue Type: Bug
> Components: Composite Cache
> Affects Versions: jcs-1.3
> Environment: Windows
> Reporter: Jean-Marc Spaggiari
>
> I have an application using many threads all calling JCS. When I close the
> application, the cache is usually working fine, but sometime, it stays
> stucked on the dispose methode.
> The cacheEventQueue never going empty. Then it's looping on while ( keepGoing
> ) and never ending. I have to kill the application to exit.
> It's difficult to reproduce. There is no fixed pattern so far.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira