Implement JSR-107

View: New views
9 Messages — Rating Filter:   Alert me  

Implement JSR-107

by Spam Squart :: Rate this Message:

| View Threaded | Show Only this Message

Hi Everyone,



I am currently investigating which cache library to use for our project.

JCS looks promising, but so does EHCache.

I think in order to stay competitive with EHCache it would be good to
implement net.sf.jsr107cache



As far as I can tell at the moment JCS looks technically more promising then
EHCache, but I feel a little worried about the lack of activity on the
project for at least the last half year and there has not been a major
release for a long time.

Regards,

Pierre

Re: Implement JSR-107

by Aaron Smuts :: Rate this Message:

| View Threaded | Show Only this Message

Do you have a specific question in mind?  

Aaron

--- On Mon, 3/1/10, Spam Squart <spam.squart@...> wrote:

> From: Spam Squart <spam.squart@...>
> Subject: Implement JSR-107
> To: jcs-users@...
> Date: Monday, March 1, 2010, 5:16 AM
> Hi Everyone,
>
>
>
> I am currently investigating which cache library to use for
> our project.
>
> JCS looks promising, but so does EHCache.
>
> I think in order to stay competitive with EHCache it would
> be good to
> implement net.sf.jsr107cache
>
>
>
> As far as I can tell at the moment JCS looks technically
> more promising then
> EHCache, but I feel a little worried about the lack of
> activity on the
> project for at least the last half year and there has not
> been a major
> release for a long time.
>
> Regards,
>
> Pierre
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@...
For additional commands, e-mail: jcs-users-help@...


Re: Implement JSR-107

by Spam Squart :: Rate this Message:

| View Threaded | Show Only this Message

Hi Aaron,

two questions from that basically.

1) Do you have plans to implement JSR-107? (At the moment everyone
seems to use net.sf.jsr107cache, like EHCache, Google AppEngine)

2) Its been long since version 1.3 has been released. What is does the
roadmap look like for version 1.4?

Regards,
Pierre


On Thu, Mar 4, 2010 at 3:12 AM, Aaron Smuts <asmuts@...> wrote:

> Do you have a specific question in mind?
>
> Aaron
>
> --- On Mon, 3/1/10, Spam Squart <spam.squart@...> wrote:
>
>> From: Spam Squart <spam.squart@...>
>> Subject: Implement JSR-107
>> To: jcs-users@...
>> Date: Monday, March 1, 2010, 5:16 AM
>> Hi Everyone,
>>
>>
>>
>> I am currently investigating which cache library to use for
>> our project.
>>
>> JCS looks promising, but so does EHCache.
>>
>> I think in order to stay competitive with EHCache it would
>> be good to
>> implement net.sf.jsr107cache
>>
>>
>>
>> As far as I can tell at the moment JCS looks technically
>> more promising then
>> EHCache, but I feel a little worried about the lack of
>> activity on the
>> project for at least the last half year and there has not
>> been a major
>> release for a long time.
>>
>> Regards,
>>
>> Pierre
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jcs-users-unsubscribe@...
> For additional commands, e-mail: jcs-users-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@...
For additional commands, e-mail: jcs-users-help@...


cache counts going negative.

by Tim Cronin-2 :: Rate this Message:

| View Threaded | Show Only this Message

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@...
For additional commands, e-mail: jcs-users-help@...

Parent Message unknown RE: cache counts going negative.

by Tim Cronin-2 :: Rate this Message:

| View Threaded | Show Only this Message

Looks like the image got removed See external link...

 

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@...]
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.

 

 


RE: cache counts going negative.

by Tim Cronin-2 :: Rate this Message:

| View Threaded | Show Only this Message

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@...]
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@...
For additional commands, e-mail: jcs-users-help@...


RE: cache counts going negative.

by Tim Cronin-2 :: Rate this Message:

| View Threaded | Show Only this Message

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@...]
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@...
For additional commands, e-mail: jcs-users-help@...


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@...
For additional commands, e-mail: jcs-users-help@...


ICompositeCacheAttributes.MaxMemoryIdleTimeSeconds vs. IElementAttributes.MaxLifeSeconds

by Tim Cronin-2 :: Rate this Message:

| View Threaded | Show Only this Message

If using the MemoryShrinker what has precedence?

And also what is the default value for MaxMemoryIdleTimeSeconds.

If using disk cache will MaxMemoryIdleTimeSeconds cause elements to be
spooled to disk?



---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@...
For additional commands, e-mail: jcs-users-help@...


RE: cache counts going negative.

by Aaron Smuts :: Rate this Message:

| View Threaded | Show Only this Message

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 <Tim.Cronin@...> wrote:

> From: Tim Cronin <Tim.Cronin@...>
> Subject: RE: cache counts going negative.
> To: "JCS Users List" <jcs-users@...>
> 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@...]
>
> 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@...
> For additional commands, e-mail: jcs-users-help@...
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jcs-users-unsubscribe@...
> For additional commands, e-mail: jcs-users-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@...
For additional commands, e-mail: jcs-users-help@...