You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-users@jakarta.apache.org by "Yang, Fang" <ya...@mayo.edu> on 2004/08/16 18:05:48 UTC

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