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 Aaron Smuts <as...@yahoo.com> on 2010/04/22 15:39:16 UTC
RE: cache counts going negative.
This is probably a bug with the admin jsp. Can you programtically call getStats and log the result.
Also, do you see any other errors in the logs.
Aaron
--- On Tue, 3/9/10, Tim Cronin <Ti...@autonomy.com> wrote:
> From: Tim Cronin <Ti...@autonomy.com>
> Subject: RE: cache counts going negative.
> To: "JCS Users List" <jc...@jakarta.apache.org>
> Date: Tuesday, March 9, 2010, 12:22 PM
> We found the following exception in
> the logs (I think this may be side
> effect to the negative count though):
>
> [3/8/10 12:17:19:528 EET] 0000007b ShrinkerThrea I
> org.apache.commons.logging.impl.Jdk14Logger info Unexpected
> trouble in
> shrink cycle
>
>
> java.lang.NegativeArraySizeException
> at
> java.util.AbstractCollection.toArray(AbstractCollection.java:138)
> at
> java.util.Collections$SynchronizedCollection.toArray(Collections.java:15
> 85)
> at
> org.apache.jcs.engine.memory.AbstractDoulbeLinkedListMemoryCache.getKeyA
> rray(AbstractDoulbeLinkedListMemoryCache.java:696)
> at
> org.apache.jcs.engine.memory.shrinking.ShrinkerThread.shrink(ShrinkerThr
> ead.java:125)
> at
> org.apache.jcs.engine.memory.shrinking.ShrinkerThread.run(ShrinkerThread
> .java:95)
> at
> EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(Unknown
> Source)
> at
> java.lang.Thread.run(Thread.java:797)
>
>
> Jvm info: Java version = 1.5.0, Java Compiler = j9jit23,
> Java VM name =
> IBM J9 VM
>
>
> Here's additional information:
>
>
>
> The AIX version is "6100-02" (6.1.2.6 with service pack 6)
>
> The WAS version "6.1.0.21"
>
> JCS tested is 1.3.3.5-RC and also latest from SVN trunk.
>
>
>
> Image of JCS.jsp showing negative item count.
>
>
>
> http://imgur.com/jmikz.png
>
>
>
>
>
> ccf file contents.
>
>
>
> ##################################################################
>
> # Default settings
>
> # http://jakarta.apache.org/jcs/index.html
>
> # http://www.jroller.com/page/aspinei/?anchor=jcs_the_good_the_bad
>
> ##################################################################
>
> jcs.default=DC
>
>
>
> # cache compression
>
> # 0 - OFF
>
> # 1 - Best performance
>
> # 9 - Best compression
>
> interwoven.cachemanager.compression=0
>
>
>
> # mem cache settings
>
> jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttribut
> es
>
> jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory
> .lru.LRUMemoryCache
>
> jcs.default.cacheattributes.UseMemoryShrinker=true
>
> jcs.default.cacheattributes.ShrinkerIntervalSeconds=300
>
> jcs.default.cacheattributes.MaxSpoolPerRun=64
>
>
>
> # element attributes
>
> jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
>
> jcs.default.elementattributes.MaxLifeSeconds=-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
>
>
>
> ##################################################################
>
> # Page settings
>
> ##################################################################
>
> jcs.region.page=DC
>
> jcs.region.page.cacheattributes.MaxObjects=128
>
>
>
> ##################################################################
>
> # Component settings
>
> ##################################################################
>
> jcs.region.component=DC
>
> jcs.region.component.cacheattributes.MaxObjects=256
>
>
>
> ##################################################################
>
> # Stylesheet settings (NOTE: NO disk region, this cache is
> memory only)
>
> ##################################################################
>
> jcs.region.stylesheet=
>
> jcs.region.stylesheet.cacheattributes.MaxObjects=128
>
> jcs.region.stylesheet.elementattributes.IsSpool=false
>
>
>
> ##################################################################
>
> # Rules settings (NOTE: NO disk region, this cache is
> memory only)
>
> ##################################################################
>
> jcs.region.rulesenginevalues=
>
> jcs.region.rulesenginevalues.cacheattributes.MaxObjects=512
>
> jcs.region.rulesenginevalues.elementattributes.IsSpool=false
>
>
>
> ##################################################################
>
> # disk cache attribs [Indexed Disk Cache]
>
> # some cache corruptions taking place with this cache
>
> ##################################################################
>
> 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.MaxPurgatorySize=1024
>
> jcs.auxiliary.DC.attributes.MaxKeySize=10240
>
> jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=1024
>
> jcs.auxiliary.DC.attributes.OptimizeOnShutdown=true
>
> jcs.auxiliary.DC.attributes.MaxRecycleBinSize=10240
>
>
>
>
>
>
>
> -----Original Message-----
> From: Tim Cronin [mailto:Tim.Cronin@autonomy.com]
>
> Sent: Thursday, March 04, 2010 12:46 PM
> To: JCS Users List
> Subject: cache counts going negative.
>
>
>
> We have a web application running in webshpere on AIX and
> for one of the
> LRU mem caches the cache count on the JCS admin page shows
> negative
> values (See attached)...
>
>
>
> We're running jcs 1.3.
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jcs-users-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jcs-users-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org