Thanks for taking a look, Thomas. I added your extra configuration params
(and removed the one that no longer exists). But I'm still having the same
problem. I have the MaxLife set down to 120 seconds so that I can get the
system to fail quickly for testing. I can get stuff into and out of the
cache for the first couple of minutes. But once the system has been up for
longer than 120 seconds, I cannot retrieve anything I put in the
stagedContent cache.
I've made a couple of changes to the config since my first post, because I
think we may have had some bad configs in there before. This is the
current config we are using (including your additional parameters):
##############################################################
##### Default Region Configuration
jcs.default=DC
jcs.default.cacheattributes=org.apache.commons.jcs.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=100
jcs.default.cacheattributes.UseDisk=true
jcs.default.cacheattributes.DiskUsagePatternName=UPDATE
jcs.default.cacheattributes.MemoryCacheName=org.apache.commons.jcs.engine.memory.lru.LRUMemoryCache
##############################################################
##### CACHE REGIONS
# Keep staged content around for 30 minutes
jcs.region.stagedContent=DC
jcs.region.stagedContent.elementattributes=org.apache.commons.jcs.engine.ElementAttributes
jcs.region.stagedContent.elementattributes.IsEternal=false
jcs.region.stagedContent.elementattributes.MaxLife=120
##############################################################
##### AUXILIARY CACHES
# Indexed Disk Cache
jcs.auxiliary.DC=org.apache.commons.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory
jcs.auxiliary.DC.attributes=org.apache.commons.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
jcs.auxiliary.DC.attributes.DiskPath=${dataDirectory}/indexed-disk-cache
jcs.auxiliary.DC.attributes.MaxPurgatorySize=10000
jcs.auxiliary.DC.attributes.MaxKeySize=10000
jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=300000
jcs.auxiliary.DC.attributes.OptimizeOnShutdown=true
jcs.auxiliary.DC.attributes.EventQueueType=POOLED
jcs.auxiliary.DC.attributes.EventQueuePoolName=disk_cache_event_queue
##############################################################
################## OPTIONAL THREAD POOL CONFIGURATION ########
# Disk Cache Event Queue Pool
thread_pool.disk_cache_event_queue.useBoundary=false
thread_pool.disk_cache_event_queue.maximumPoolSize=15
thread_pool.disk_cache_event_queue.minimumPoolSize=1
thread_pool.disk_cache_event_queue.keepAliveTime=3500
thread_pool.disk_cache_event_queue.startUpSize=1
Any ideas on what's going wrong? Thanks.
Tom
On Thu, Jan 12, 2017 at 1:13 PM, Thomas Vandahl <[email protected]> wrote:
> On 10.01.17 18:08, Tom Schroeder wrote:
> > jcs.auxiliary.DC.attributes.MaxRecycleBinSize=7500
>
> This setting does no longer exist. Please remove it. It has nothing to
> do with your problem, however.
>
> > Thinking that this was related to the following JIRA issue:
> > https://issues.apache.org/jira/browse/JCS-146?jql=text%
> > 20~%20%22Mismatched%20memory%20and%20disk%20length%22, we upgraded our
> > version to 2.0-beta-2 and then to 2.0. The upgrade eliminated the build
> > error, but it seems now that we have an issue with our MaxLife property
> on
> > our stagedContent region. It appears that after the system has been up
> for
> > longer than the MaxLife number of seconds (1800 seconds, or 30 minutes),
> > the entire cache stops returning data. Any content staged to the cache
> can
> > no longer be retrieved with the CacheAccess.get(id) method (returns
> null).
> > We have to bounce the system to get the cache working again. We reverted
> > to the 2.0-beta-1 version and the cache is now remaining operational
> beyond
> > the MaxLife time, but we would like to be able to upgrade to the latest
> > version. Have we missed something obvious in the configuration here, or
> is
> > there something else going on? Any ideas would be greatly appreciated.
>
> Could you please try to add the following to your configuration and see
> if it changes anything?
>
> --8<--
> jcs.auxiliary.DC.attributes.EventQueueType=POOLED
> jcs.auxiliary.DC.attributes.EventQueuePoolName=disk_cache_event_queue
>
> ##############################################################
> ################## OPTIONAL THREAD POOL CONFIGURATION ########
>
> # Disk Cache Event Queue Pool
> thread_pool.disk_cache_event_queue.useBoundary=false
> thread_pool.disk_cache_event_queue.maximumPoolSize=15
> thread_pool.disk_cache_event_queue.minimumPoolSize=1
> thread_pool.disk_cache_event_queue.keepAliveTime=3500
> thread_pool.disk_cache_event_queue.startUpSize=1
> --8<--
>
> Bye, Thomas
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>