jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yang, Fang" <yang.f...@mayo.edu>
Subject RE: MaxLifeSeconds and IdleTime definition
Date Mon, 16 Aug 2004 17:05:37 GMT
Thanks a lot for the help Aaron!

It appears to be working now after I make some changes to the ccf file, however, I am still
getting the following message on the console. Do you know why? 

Thanks again!

Fang

[8/16/04 11:52:48:541 CDT] 3ce07684 OptionConvert W org.apache.jcs.config.OptionConverter
 Could not find value for key jcs.region.OjbCache.elementattributes

[8/16/04 11:52:48:541 CDT] 3ce07684 CompositeCach W org.apache.jcs.engine.control.CompositeCacheConfigurator
 Could not instantiate eAttr named 'jcs.region.OjbCache.elementattributes', using defaults.

The new ccf file:

# DEFAULT CACHE REGION  
# Sets the default value for any non configured caches 
jcs.default=
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=1000
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache

# default region used by the OJB
jcs.region.OjbCache=
jcs.region.OjbCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.OjbCache.cacheattributes.MaxObjects=1000
jcs.region.OjbCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.OjbCache.cacheattributes.UseMemoryShrinker=true
jcs.region.OjbCache.cacheattributes.MaxMemoryIdleTimeSeconds=180
jcs.region.OjbCache.cacheattributes.ShrinkerIntervalSeconds=180
jcs.region.OjbCache.elementattributes.IsEternal=false 
jcs.region.OjbCache.elementattributes.MaxLifeSeconds=120
jcs.region.OjbCache.elementattributes.IdleTime=60
jcs.region.OjbCache.elementattributes.IsSpool=false
jcs.region.OjbCache.elementattributes.IsRemote=false
jcs.region.OjbCache.elementattributes.IsLateral=false


> -----Original Message-----
> From:	Smuts, Aaron [SMTP:aaronsm@amazon.com]
> Sent:	Monday, August 16, 2004 11:25 AM
> To:	Turbine JCS Users List
> Subject:	RE: MaxLifeSeconds and IdleTime definition
> 
> You do not need to define the groupidcache if you are not using groups.  The current
implementation of groups doesn't use it either.  You can safely remove it from the cache.ccf.
> 
> If you set isEternal=true the items will not expire. If you are not using a memory shrinker,
then the items are removed only by falling out of the Lru or when they are requested and have
expired.  
> 
> Aaron
> 
> -----Original Message-----
> From: Yang, Fang [mailto:yang.fang@mayo.edu] 
> Sent: Monday, August 16, 2004 9:06 AM
> To: 'turbine-jcs-user@jakarta.apache.org'
> Subject: MaxLifeSeconds and IdleTime definition
> 
> Hi,
> 
> I defined both MaxLifeSeconds and IdleTime in the cache.ccf file, but it does not work.
Could someone please tell me what I did wrong? Also, what the groupIDCache definition is used
for? Do I need it for simple memory cache without any auxiliary? 
> 
> I am new to JCS, and thanks in advance for your help!
> 
> Fang
> 
> 
> My ccf file:
> 
> # DEFAULT CACHE REGION
> # Sets the default value for any non configured caches jcs.default= jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
> jcs.default.cacheattributes.MaxObjects=1000
> jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
>   
> jcs.system.groupIdCache=
> jcs.system.groupIdCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
> jcs.system.groupIdCache.cacheattributes.MaxObjects=10000
> jcs.system.groupIdCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
> 
> # default region used by the OJB
> jcs.region.OjbCache=
> jcs.region.OjbCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
> jcs.region.OjbCache.cacheattributes.MaxObjects=1000
> jcs.region.OjbCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
> jcs.region.OjbCache.elementattributes.IsEternal=false
> jcs.region.OjbCache.elementattributes.MaxLifeSeconds=240> 
> jcs.region.OjbCache.elementattributes.IdleTime=120
> jcs.region.OjbCache.elementattributes.IsSpool=false
> jcs.region.OjbCache.elementattributes.IsRemote=false
> jcs.region.OjbCache.elementattributes.IsLateral=false
> 
> 
> The console output when initializing JCS:
> 
> [8/16/04 9:30:22:101 CDT] 46cc46cc CompositeCach I org.apache.jcs.engine.control.CompositeCacheConfigurator
 setting defaults to 
> 
> [8/16/04 9:30:22:131 CDT] 46cc46cc CompositeCach I org.apache.jcs.engine.control.CompositeCacheConfigurator
 setting defaultCompositeCacheAttributes to [ useLateral = true, useRemote = true, useDisk
= true, maxObjs = 1000 ]
> 
> [8/16/04 9:30:22:131 CDT] 46cc46cc OptionConvert W org.apache.jcs.config.OptionConverter
 Could not find value for key jcs.default.elementattributes
> 
> [8/16/04 9:30:22:141 CDT] 46cc46cc CompositeCach W org.apache.jcs.engine.control.CompositeCacheConfigurator
 Could not instantiate eAttr named 'jcs.default.elementattributes', using defaults.
> 
> [8/16/04 9:30:22:141 CDT] 46cc46cc CompositeCach I org.apache.jcs.engine.control.CompositeCacheConfigurator
 setting defaultElementAttributes to [ IS_LATERAL = false, IS_SPOOL = false, IS_REMOTE = false,
IS_ETERNAL = true, MaxLifeSeconds = -1, IdleTime = -1, CreateTime = 1092666622141, LastAccessTime
= 1092666622141, getTimeToLiveSeconds() = -1000, createTime = 1092666622141 ]
> 
> [8/16/04 9:30:22:141 CDT] 46cc46cc OptionConvert W org.apache.jcs.config.OptionConverter
 Could not find value for key jcs.system.groupIdCache.elementattributes
> 
> [8/16/04 9:30:22:151 CDT] 46cc46cc CompositeCach W org.apache.jcs.engine.control.CompositeCacheConfigurator
 Could not instantiate eAttr named 'jcs.system.groupIdCache.elementattributes', using defaults.
> 
> [8/16/04 9:30:22:261 CDT] 46cc46cc LRUMemoryCach I org.apache.jcs.engine.memory.lru.LRUMemoryCache
 initialized LRUMemoryCache for groupIdCache
> 
> [8/16/04 9:30:22:261 CDT] 46cc46cc CompositeCach I org.apache.jcs.engine.control.CompositeCache
 Constructed cache with name: groupIdCache
> 
> [8/16/04 9:30:22:261 CDT] 46cc46cc OptionConvert W org.apache.jcs.config.OptionConverter
 Could not find value for key jcs.region.OjbCache.elementattributes
> 
> [8/16/04 9:30:22:261 CDT] 46cc46cc CompositeCach W org.apache.jcs.engine.control.CompositeCacheConfigurator
 Could not instantiate eAttr named 'jcs.region.OjbCache.elementattributes', using defaults.
> 
> [8/16/04 9:30:22:301 CDT] 46cc46cc LRUMemoryCach I org.apache.jcs.engine.memory.lru.LRUMemoryCache
 initialized LRUMemoryCache for OjbCache
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-jcs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-jcs-user-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-jcs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-jcs-user-help@jakarta.apache.org

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


Mime
View raw message