You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Tim Cronin <ti...@outboundengine.com> on 2017/01/26 15:18:36 UTC

Re: Solved JCS 2.0 cache disappearing

we had a CCP error and two cache instances had the same name and
the finalize killed to wrong cache.


On Wed, Jan 18, 2017 at 10:14 AM, Tim Cronin <ti...@outboundengine.com> wrote:

> started getting these errors, have to restart the tomcat server to resolve:
>
> ERROR org.apache.commons.jcs.auxiliary.disk.indexed.IndexedDiskCache –
> Region [DroppedEmailSent] No longer alive so returning false for key =
> hqYRRK
>
> here is our config
>
> ##################################################################
> # JCS cache configuration
> #
> # JCS homepage:  http://jakarta.apache.org/jcs/
> ##################################################################
>
> ##################################################################
> # default mem cache settings
> ##################################################################
> jcs.default=DC
> jcs.default.cacheattributes=org.apache.commons.jcs.engine.
> CompositeCacheAttributes
> jcs.default.cacheattributes.MemoryCacheName=org.apache.
> commons.jcs.engine.memory.lru.LRUMemoryCache
> jcs.default.cacheattributes.UseMemoryShrinker=true
> jcs.default.cacheattributes.MaxMemoryIdleTimeSeconds=3600
> jcs.default.cacheattributes.ShrinkerIntervalSeconds=300
> jcs.default.cacheattributes.MaxSpoolPerRun=64
> jcs.default.cacheattributes.DiskUsagePatternName=UPDATE
>
> ##################################################################
> # default element attributes
> ##################################################################
> jcs.default.elementattributes=org.apache.commons.jcs.engine.
> ElementAttributes
> jcs.default.elementattributes.MaxLife=-1
> jcs.default.elementattributes.IdleTime=-1
> jcs.default.elementattributes.IsEternal=true
> jcs.default.elementattributes.IsSpool=true
> jcs.default.elementattributes.IsRemote=false
> jcs.default.elementattributes.IsLateral=false
>
> ##################################################################
> # default disk cache settings
> ##################################################################
> 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=${catalina.home}/temp/oeserver-cache/
> jcs.auxiliary.DC.attributes.MaxPurgatorySize=512
> jcs.auxiliary.DC.attributes.MaxKeySize=8096
> jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=256
> jcs.auxiliary.DC.attributes.OptimizeOnShutdown=true
> jcs.auxiliary.DC.attributes.EventQueueType=POOLED
> jcs.auxiliary.DC.attributes.EventQueuePoolName=disk_cache_event_queue
>
> ##################################################################
> # Disk Cache pool
> ##################################################################
> thread_pool.disk_cache_event_queue.boundarySize=50
> thread_pool.disk_cache_event_queue.useBoundary=true
> thread_pool.disk_cache_event_queue.maximumPoolSize=30
> thread_pool.disk_cache_event_queue.minimumPoolSize=4
> thread_pool.disk_cache_event_queue.keepAliveTime=3500
> thread_pool.disk_cache_event_queue.startUpSize=4
> thread_pool.disk_cache_event_queue.whenBlockedPolicy=RUN
>
> ##################################################################
> # UserCampaignInfoHistoryDbo
> ##################################################################
> jcs.region.UserCampaignInfoHistoryDbo.cacheattributes.MaxObjects=100
> jcs.region.UserCampaignInfoHistoryDbo.elementattributes.IsEternal=false
> jcs.region.UserCampaignInfoHistoryDbo.elementattributes.MaxLife=2000000
> jcs.region.UserCampaignInfoHistoryDbo.elementattributes.IdleTime=1800
>
> ##################################################################
> # UrlShorteningDbo (14 day cache)
> ##################################################################
> jcs.region.UrlShorteningDbo.cacheattributes.MaxObjects=4000
> jcs.region.UrlShorteningDbo.elementattributes.IsEternal=false
> jcs.region.UrlShorteningDbo.elementattributes.MaxLife=1209600
>
> ##################################################################
> # Emails sent for dropped email that lasts 24 hours
> ##################################################################
> jcs.region.DroppedEmailSent.cacheattributes.MaxObjects=1000
> jcs.region.DroppedEmailSent.elementattributes.IsEternal=false
> jcs.region.DroppedEmailSent.elementattributes.MaxLife=86400
> jcs.region.DroppedEmailSent.elementattributes.IdleTime=1800
>