asmuts 2004/05/09 18:14:10
Modified: src/conf log4j.properties cache.ccf
Log:
added new configuration params for shrinker and disk
Revision Changes Path
1.2 +22 -16 jakarta-turbine-jcs/src/conf/log4j.properties
Index: log4j.properties
===================================================================
RCS file: /home/cvs/jakarta-turbine-jcs/src/conf/log4j.properties,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- log4j.properties 7 Apr 2002 16:55:20 -0000 1.1
+++ log4j.properties 10 May 2004 01:14:10 -0000 1.2
@@ -1,4 +1,4 @@
-log4j.rootCategory=ERROR,WF
+log4j.rootCategory=WARN, A1
# A1 -- console
log4j.appender.A1=org.apache.log4j.ConsoleAppender
@@ -8,30 +8,36 @@
# RF --file appender
log4j.appender.RF=org.apache.log4j.RollingFileAppender
[EMAIL PROTECTED]@logs/primary.log
+log4j.appender.RF.File=I:/dev/jakarta-turbine-jcs/src/scripts/primary.log
log4j.appender.RF.layout=org.apache.log4j.PatternLayout
log4j.appender.RF.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
# WF -- special file for warnings
-log4j.appender.WF=org.apache.log4j.RollingFileAppender
[EMAIL PROTECTED]@logs/warnings.log
-log4j.appender.WF.layout=org.apache.log4j.PatternLayout
-log4j.appender.WF.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
+#log4j.appender.WF=org.apache.log4j.RollingFileAppender
+#log4j.appender.WF.File=I:/dev/jakarta-turbine-jcs/src/scripts/warnings.log
+#log4j.appender.WF.layout=org.apache.log4j.PatternLayout
+#log4j.appender.WF.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
#################################################################################
# Print only messages of priority WARN or above in the package com.foo.
-#log4j.category.org.apache.stratum=WARN,WF
+
#log4j.category.org.apache.jcs=ERROR,A1,WF
-log4j.category.org.apache.jcs.acess=WARN,WF
-log4j.category.org.apache.jcs.engine.control=WARN,WF
-log4j.category.org.apache.jcs.engine.memory.shrinking=ERROR,A1
-log4j.category.org.apache.jcs.config=WARN,A1
-log4j.category.org.apache.jcs.auxiliary.disk=WARN,WF
-log4j.category.org.apache.jcs.auxiliary.lateral.javagroups=WARN,WF
-log4j.category.org.apache.jcs.auxiliary.lateral.xmlrpc=DEBUG,WF
-log4j.category.org.apache.jcs.auxiliary.remote=WARN,WF
-log4j.category.org.apache.jcs.utils=WARN,WF
+#log4j.category.org.apache.jcs.acess=WARN,WF
+#log4j.category.org.apache.jcs.engine.control=WARN,WF
+
+#log4j.logger.org.apache.jcs.engine.memory.shrinking=DEBUG
+#log4j.logger.org.apache.jcs.auxiliary.disk=DEBUG
+#log4j.logger.org.apache.jcs.auxiliary.disk.indexed=INFO
+
+#log4j.category.org.apache.jcs.config=WARN,A1
+
+#log4j.category.org.apache.jcs.auxiliary.disk=WARN,WF
+#log4j.category.org.apache.jcs.auxiliary.lateral.javagroups=WARN,WF
+#log4j.category.org.apache.jcs.auxiliary.lateral.xmlrpc=DEBUG,WF
+#log4j.category.org.apache.jcs.auxiliary.remote=WARN,WF
+#log4j.category.org.apache.jcs.utils=WARN,WF
+#log4j.category.org.apache.jcs.utils.locking=DEBUG
1.3 +22 -45 jakarta-turbine-jcs/src/conf/cache.ccf
Index: cache.ccf
===================================================================
RCS file: /home/cvs/jakarta-turbine-jcs/src/conf/cache.ccf,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- cache.ccf 15 May 2002 19:38:32 -0000 1.2
+++ cache.ccf 10 May 2004 01:14:10 -0000 1.3
@@ -1,7 +1,7 @@
##############################################################
################## DEFAULT CACHE REGION #####################
# sets the default aux value for any non configured caches
-jcs.default=DC,RFailover
+jcs.default=DC
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=1000
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
@@ -19,9 +19,9 @@
# SYSTEM CACHE
# should be defined for the storage of group attribute list
-jcs.system.groupIdCache=DC,RFailover
+jcs.system.groupIdCache=DC
jcs.system.groupIdCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
-jcs.system.groupIdCache.cacheattributes.MaxObjects=10000
+jcs.system.groupIdCache.cacheattributes.MaxObjects=1000
jcs.system.groupIdCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.system.groupIdCache.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.system.groupIdCache.elementattributes.IsEternal=true
@@ -35,58 +35,33 @@
##############################################################
################## CACHE REGIONS AVAILABLE ###################
# Regions preconfirgured for caching
-jcs.region.testCache1=DC,RFailover
+jcs.region.testCache1=DC
jcs.region.testCache1.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
-jcs.region.testCache1.cacheattributes.MaxObjects=10000
+jcs.region.testCache1.cacheattributes.MaxObjects=20
jcs.region.testCache1.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
-jcs.region.testCache1.cacheattributes.UseMemoryShrinker=true
-jcs.region.testCache1.cacheattributes.MaxMemoryIdleTimeSeconds=3600
+jcs.region.testCache1.cacheattributes.UseMemoryShrinker=false
+jcs.region.testCache1.cacheattributes.MaxMemoryIdleTimeSeconds=5
+# New shrinker configuration parameter
+jcs.region.testCache1.cacheattributes.MaxSpoolPerRun=100
jcs.region.testCache1.cacheattributes.ShrinkerIntervalSeconds=3
-jcs.region.testCache1.elementattributes.IsEternal=false
-jcs.region.testCache1.elementattributes.MaxLifeSeconds=10
+jcs.region.testCache1.elementattributes.IsEternal=true
+jcs.region.testCache1.elementattributes.MaxLifeSeconds=500
+jcs.region.testCache1.elementattributes.IsLateral=true
-jcs.region.testCache2=DC,LTCP
+jcs.region.testCache2=DC
jcs.region.testCache2.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
-jcs.region.testCache2.cacheattributes.MaxObjects=1000
+jcs.region.testCache2.cacheattributes.MaxObjects=10
jcs.region.testCache2.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
-jcs.region.testCache2.cacheattributes.UseMemoryShrinker=true
+jcs.region.testCache2.cacheattributes.UseMemoryShrinker=false
jcs.region.testCache2.cacheattributes.MaxMemoryIdleTimeSeconds=10
jcs.region.testCache2.cacheattributes.ShrinkerIntervalSeconds=60
jcs.region.testCache2.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.region.testCache2.elementattributes.IsEternal=false
-jcs.region.testCache2.elementattributes.MaxLifeSeconds=60
+jcs.region.testCache2.elementattributes.MaxLifeSeconds=600
jcs.region.testCache2.elementattributes.IsSpool=true
jcs.region.testCache2.elementattributes.IsRemote=true
jcs.region.testCache2.elementattributes.IsLateral=true
-jcs.region.testCache3=DC
-jcs.region.testCache3.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
-jcs.region.testCache3.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.shrinking.ShrinkingMemoryCache
-jcs.region.testCache3.cacheattributes.UseMemoryShrinker=true
-jcs.region.testCache3.cacheattributes.MaxMemoryIdleTimeSeconds=3600
-jcs.region.testCache3.cacheattributes.ShrinkerIntervalSeconds=60
-
-jcs.region.testCache4=DC,LJG
-jcs.region.testCache4.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
-jcs.region.testCache4.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.shrinking.ShrinkingMemoryCache
-jcs.region.testCache4.cacheattributes.UseMemoryShrinker=true
-jcs.region.testCache4.cacheattributes.MaxMemoryIdleTimeSeconds=3600
-jcs.region.testCache4.cacheattributes.ShrinkerIntervalSeconds=60
-jcs.region.testCache4.elementattributes=org.apache.jcs.engine.ElementAttributes
-jcs.region.testCache4.elementattributes.IsEternal=false
-jcs.region.testCache4.elementattributes.MaxLifeSeconds=60
-jcs.region.testCache4.elementattributes.IsSpool=true
-jcs.region.testCache4.elementattributes.IsRemote=true
-jcs.region.testCache4.elementattributes.IsLateral=true
-
-
-
-# prefered config
-jcs.region.test2=DC,RFailover
-jcs.region.test2.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
-jcs.region.test2.cacheattributes.MaxObjects=1000
-jcs.region.test2.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
-
##############################################################
################## AUXILIARY CACHES AVAILABLE ################
@@ -109,7 +84,9 @@
# Primary Disk Cache-- faster than the rest because of memory key storage
jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory
jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
-jcs.auxiliary.DC.attributes.DiskPath=g:\dev\raf
+jcs.auxiliary.DC.attributes.DiskPath=i:/dev/raf/3
+#new disk cache parameter.
+jcs.auxiliary.DC.attributes.maxKeySize=1000
# HSQL Disk Cache -- too slow as is
jcs.auxiliary.HDC=org.apache.jcs.auxiliary.disk.hsql.HSQLCacheFactory
@@ -151,14 +128,14 @@
jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.LateralCacheFactory
jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.LateralCacheAttributes
jcs.auxiliary.LTCP.attributes.TransmissionTypeName=TCP
-jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1111
-jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
+jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1112
+jcs.auxiliary.LTCP.attributes.TcpListenerPort=1111
jcs.auxiliary.LTCP.attributes.PutOnlyMode=false
jcs.auxiliary.LTCP2=org.apache.jcs.auxiliary.lateral.LateralCacheFactory
jcs.auxiliary.LTCP2.attributes=org.apache.jcs.auxiliary.lateral.LateralCacheAttributes
jcs.auxiliary.LTCP2.attributes.TransmissionTypeName=TCP
-jcs.auxiliary.LTCP2.attributes.TcpServers=localhost:1111,localhost2:1112
+jcs.auxiliary.LTCP2.attributes.TcpServers=localhost:1112
jcs.auxiliary.LTCP2.attributes.TcpListenerPort=1111
jcs.auxiliary.LTCP2.attributes.PutOnlyMode=true
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]