you might have more luck if you post to the JCS mailing list :)
Filip
Raghavendra Kumar Naik wrote:
Hi
Myself Raghu, is implementing the JCS for one of my projects.Here I use
the concept of RemoteCacheServer and RemoteCacheClient.
When I populate some 1 lakh objects from the client it updates server as
well.My problem is to update the objects from client to server JCS
maintains only "ONE THREAD" inorder to do the task i.e
"CacheEventQueue.QProcessor".
Is there any setting should I do so that I can increase the the number
of threads which updates the object from client to server???
Please suggest me on this...
Below are the Client and Sever configuration files
cache.ccf file for Client
jcs.default.cacheattributes.MaxObjects=5000
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory
.lru.LRUMemoryCache
jcs.default.cacheattributes.UseMemoryShrinker=true
jcs.default.cacheattributes.MaxMemoryIdleTimeSeconds=30000
jcs.default.cacheattributes.ShrinkerIntervalSeconds=30000
jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.default.elementattributes.IsEternal=true
jcs.default.cacheattributes.useLateral=false
jcs.default.cacheattributes.useRemote=false
jcs.default.cacheattributes.useDisk=false
# Remote RMI Cache set up to failover
jcs.auxiliary.RFailover=org.apache.jcs.auxiliary.remote.RemoteCacheFacto
ry
jcs.auxiliary.RFailover.attributes=org.apache.jcs.auxiliary.remote.Remot
eCacheAttributes
jcs.auxiliary.RFailover.attributes.FailoverServers=10.120.5.216:2131
jcs.auxiliary.RFailover.attributes.GetTimeoutMillis=5000
jcs.auxiliary.RFailover.attributes.Receive=false
# make sure to enable useRemote=true for using remote cache and also add
RFailover to BookCache
jcs.region.BookCache=RFailover
jcs.region.BookCache.cacheattributes=org.apache.jcs.engine.CompositeCach
eAttributes
jcs.region.BookCache.cacheattributes.MaxObjects=5000
jcs.region.BookCache.cacheattributes.MemoryCacheName=org.apache.jcs.engi
ne.memory.lru.LRUMemoryCache
jcs.region.BookCache.cacheattributes.UseMemoryShrinker=true
jcs.region.BookCache.cacheattributes.MaxMemoryIdleTimeSeconds=30000
jcs.region.BookCache.cacheattributes.ShrinkerIntervalSeconds=30000
jcs.region.BookCache.elementattributes=org.apache.jcs.engine.ElementAttr
ibutes
jcs.region.BookCache.elementattributes.IsEternal=true
jcs.region.BookCache.cacheattributes.useLateral=false
jcs.region.BookCache.cacheattributes.useRemote=true
jcs.region.BookCache.cacheattributes.useDisk=false
cache.ccf file for Server
# sets the default aux value for any non configured caches
jcs.default=DC
#jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttribu
tes
jcs.default.cacheattributes.MaxObjects=80000
jcs.default.cacheattributes.useLateral=false
jcs.default.elementattributes.IsEternal=true
# registry used to register and provide the
# IRemoteCacheService service.
registry.host=localhost
registry.port=2131
# call back port to local caches.
remote.cache.service.port=2131
# cluster setting
remote.cluster.LocalClusterConsistency=true
remote.cluster.AllowClusterGet=true
# AVAILABLE AUXILIARY CACHES
jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheF
actory
jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.Indexe
dDiskCacheAttributes
jcs.auxiliary.DC.attributes.DiskPath=/home/raghav/LBservers/cachedData
jcs.auxiliary.DC.attributes.maxKeySize=20000
jcs.auxiliary.DC.attributes.optimizeAtRemoveCount=5000
jcs.auxiliary.DC.attributes.MaxPurgatorySize=5000
jcs.auxiliary.DC.attributes.MaxRecycleBinSize=1000
Thanks
Raghu
------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.526 / Virus Database: 270.4.7/1541 - Release Date: 7/8/2008 7:50 PM
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]