RE: More than 1 cache-instance [not] needed

2002-06-07 Thread Aaron Smuts
of a predefined region? For example: can I define a region (e.g. webServicesRegion in a config file) and let these runtime defined regions have the same settings as this predefined region? Thanks, Maarten On Thu, 6 Jun 2002, Aaron Smuts wrote: It might be nice to be able

RE: More than 1 cache-instance [not] needed

2002-06-07 Thread Aaron Smuts
You just need to name your keys more descriptively. Add part, or all, of the webservice name in the key, then a colon, and then the key and you should be fine. get( webservice_name + : + id ); Let's do an experiment. Think of the cache as a hashtable. Say the elements never need to

RE: Spooling after each update

2003-06-05 Thread Aaron Smuts
guess your solution wouldn't help then. Michal -Ursprungliche Nachricht- Von: Aaron Smuts [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 4. Juni 2003 16:37 An: 'Turbine JCS Users List' Betreff: FW: Spooling after each update You could just set the memory size to some

RE: Spooling after each update

2003-06-05 Thread Aaron Smuts
, but maybe I didn't make myself clear: I still want to use a decently sized memory cache, the disk cache is auxiliary. I guess your solution wouldn't help then. Michal -Ursprungliche Nachricht- Von: Aaron Smuts [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 4. Juni 2003 16:37

RE: Is Remote Cache working?

2003-06-20 Thread Aaron Smuts
You will need to have a policy file granting access to the rmi server. -Original Message- From: Neil Avery [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 11:33 AM To: turbine-jcs-user Subject: Is Remote Cache working? Hi All, Ive been digging around the JCS code

RE: Memory test

2003-09-11 Thread Aaron Smuts
Try setting usememoryshrinker to false and see if you get the same problem. Aaron -Original Message- From: Daniel Rosenbaum [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 9:39 AM To: Turbine JCS Users List Subject: RE: Memory test As a follow up, I let my test run

RE: out of memory error with TestDiskCache

2003-09-15 Thread Aaron Smuts
There cache isn't made to just dump items into it as fast as possible. Hmmn Aaron -Original Message- From: Daniel Rosenbaum [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 4:33 PM To: Turbine JCS Users List Subject: Re: out of memory error with TestDiskCache Shaohua,

RE: general question on JCS

2003-10-10 Thread Aaron Smuts
Some notes on thread usage in JCS: All puts to lateral caches are done in background threads. The indexed disk cache uses a two stage process, putting elements in a purgatory before disk storage. Recovery of auxiliary caches occurs in background threads. Auxiliaries are wrapped in balking

RE: general question on JCS

2003-10-10 Thread Aaron Smuts
cache, etc? -Original Message- From: Aaron Smuts [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2003 4:14 PM To: 'Turbine JCS Users List' Subject: RE: general question on JCS Some notes on thread usage in JCS: All puts to lateral caches are done in background threads

RE: general question on JCS

2003-10-11 Thread Aaron Smuts
Ya. You shouldn't need to do any synchronization around JCS calls in most conceivable cases. Remember that the cache passes objects by reference. If you change an object you get from the cache, the object in the cache is changed. Aaron -Original Message- From: Craig Johannsen

RE: ElementEventQueue question

2003-10-26 Thread Aaron Smuts
That doesn't sound right. Those threads are trying to perform some event to an auxiliary cache. Is everything working? Does the disk cache have write access to the file? Do you have laterals that might be blocked by a firewall? Aaron -Original Message- From: Nicholas J.

RE: RE: ElementEventQueue question

2003-10-29 Thread Aaron Smuts
Paste your config file in an email. -Original Message- From: Nicholas J. Dellamaggiore [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 10:01 PM To: [EMAIL PROTECTED] Subject: Fwd: RE: ElementEventQueue question The thread problem is actually pretty bad. We left out

RE: RE: ElementEventQueue question

2003-10-30 Thread Aaron Smuts
I'm surprised that it works with all those periods in the name of your region. I'm not sure this will parse correctly. Remove the periods. Replace them with _ and test. You have the memory shrinker on but have not defined a maxlife seconds. I think the default in this case is to treat the

RE: jmx

2003-11-05 Thread Aaron Smuts
I once had an management mbean running in an embedded sever in each cache. It allowed for listing of cache regions and provided the ability to clear any or all regions. It was very useful for emergency consistency control. Aaron -Original Message- From: paulo caroli [mailto:[EMAIL

RE: jmx

2003-11-05 Thread Aaron Smuts
- From: Aaron Smuts [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 11:06 AM To: 'Turbine JCS Users List' Subject: RE: jmx I once had an management mbean running in an embedded sever in each cache. It allowed for listing of cache regions and provided the ability to clear

RE: Lateral TCP and Remote Cache configuration

2003-11-06 Thread Aaron Smuts
. Regardless, sucy a management tool is something we will build very very shortly in order to flush groups within a region. ToddC -Original Message- From: Aaron Smuts [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 11:06 AM To: 'Turbine JCS Users List' Subject: RE

RE: [indexeddiskcache] key file not written

2003-11-13 Thread Aaron Smuts
There must be a bug in save. I'll take a look. If there was a patch, please send it to me. Aaron -Original Message- From: Jim Arnott [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 10:20 AM To: [EMAIL PROTECTED] Subject: RE: [indexeddiskcache] key file not written

RE: CacheElement hashCode problem

2003-11-13 Thread Aaron Smuts
Can you send me a stack trace also. -Original Message- From: Ryan Breidenbach [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 11:51 AM To: [EMAIL PROTECTED] Subject: CacheElement hashCode problem I am using JCS with Hibernate for caching, and I came across a problem.

RE: Alter behavior through event handling?

2003-11-17 Thread Aaron Smuts
I started implementing event handlers, but it may not be finished yet. -Original Message- From: Todd Carmichael [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 11:14 AM To: 'Turbine JCS Users List' Subject: RE: Alter behavior through event handling? +1 for event

RE: Alter behavior through event handling?

2003-11-17 Thread Aaron Smuts
In the cache access class you can get the elementattributes for and item. Every item in the cache is given one by default. If you are putting something in, you can get the default elementattributes and then modify it and then use the put method that takes the elementattributes as an argument.

RE: Key types supported in MRUMemoryCache

2003-12-04 Thread Aaron Smuts
Thanks Aaron. A follow up question. MRUMemoryCache uses a LinkedList whereas LRUMemoryCache implements its own linked list using MemoryElementDescritor types. Any reason why LRU manager does not use LinkedList? Thanks Snehal --- Aaron Smuts [EMAIL PROTECTED] wrote: The MRU memory

RE: cleaning the cache data

2004-01-13 Thread Aaron Smuts
I suppose this is for emergency use. One way is to build a simple page that lists all the regions and has a link where you can call removeall. There should be an example in the experimental codebase. Other options depend on your remote configuration. Aaron -Original Message- From:

RE: Indexed Disk Cache Configuration

2004-01-14 Thread Aaron Smuts
The diskcache keys are kept in memory until the cache is properly shutdown. You must have two vm's running, perhaps 2 instances of the portal server running, or a test program running? Aaron -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday,

RE: Access to All Disk Cache Items

2004-01-18 Thread Aaron Smuts
I can't think of a clean way to do it. The disk cache is treated pretty much as one of the other auxiliary caches. Nothing like this was built into the interfaces for any of the remote auxiliaries, since for them it wouldn't be very useful. Another reason why this doesn't exist for disk

RE: Access to All Disk Cache Items

2004-01-18 Thread Aaron Smuts
The list generation fails fast. Instead of giving you the live list of keys, on which you will get a change in underlying map error, the cache gives you a copy. But the copy process also fails fast. Instead of locking the underlying map, I allow the copy to fail if the underlying map changes.

RE: Is JCS slow ?

2004-01-20 Thread Aaron Smuts
No, no one has ever asked if JCS is slow. Something is definitely wrong. The cache is not significantly slower than a hashtable. Can you give more details about your configuration (i.e. the cache.ccf file) and what you are caching. -Original Message- From: Spaggiari, Jean-Marc

RE: setting up Remote Caching Service

2004-01-21 Thread Aaron Smuts
After that, build using the standard maven command to get the stubs in the jar. -Original Message- From: bob steadman [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 10:54 AM To: [EMAIL PROTECTED] Subject: setting up Remote Caching Service I'm attempting to set up RCS

RE: setting up Remote Caching Service

2004-01-21 Thread Aaron Smuts
and it build out the target directory. Is there another step that I may be missing. Thanks for your help. - Original Message - From: Aaron Smuts [EMAIL PROTECTED] To: 'Turbine JCS Users List' [EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 12:16 PM Subject: RE: setting up Remote

RE: Restarting machines - keeping the cache.

2004-02-17 Thread Aaron Smuts
The RemoteCache will do what you want, since it was not designed as just a broadcaster. The local caches hook up to the remote cache, send it update, the remote cache broadcasts delete requests for that item to the other locals, and then if one of them needs an item and it is not stored locally

RE: Cache returning unexpected items.

2004-02-23 Thread Aaron Smuts
This sounds very strange. Are you sure the cache was returning the wrong value? There is no way your program could have a multithreading problem and switch up some entries? The cache passes objects by reference--could you have tried to recycled some entry somewhere? Aaron -Original

RE: xml config prototype

2004-04-18 Thread Aaron Smuts
with a bunch of attributes? For example: region name=example classname=org.apache.jcs.engine.CompositeCacheAttributes maxObjects=10 etc. Along with some inner tags if nec. The other way is very verbose. Perhaps use JAXP to map the XML to java classes as well. Daniel --- Aaron

RE: xml config prototype

2004-04-19 Thread Aaron Smuts
Yes, that does look nice and clear. Good idea. I'm not sure what Digester can do, people seem to like it, but it is not exactly the simplest thing to use. Thanks, Aaron -Original Message- From: James Taylor [mailto:[EMAIL PROTECTED] Sent: Monday, April 19, 2004 6:00 AM To:

RE: xml config prototype

2004-04-19 Thread Aaron Smuts
classname value=org.apache.jcs.engine.CompositeCacheAttributes/ cache-attributes -Original Message- From: Aaron Smuts [mailto:[EMAIL PROTECTED] Sent: Sunday, 18 April, 2004 8:14 To: 'Turbine JCS Users List' Subject: xml config prototype I'm working using Digester to configure JCS

RE: Additional problems.

2004-04-25 Thread Aaron Smuts
-Original Message- From: Matthew Cooke [mailto:[EMAIL PROTECTED] Sent: Sunday, April 25, 2004 6:23 AM To: Turbine JCS Users List Subject: Additional problems. The original problem was that the removal code was commented out in the src. Then I needed to change the code to use

RE: unable to interact with remote server

2004-05-10 Thread Aaron Smuts
to the server. A pessimistic mode is configurable so that the clients will engage in active status checks How could I change the client to run in pessimistic mode? If I have only 1 remote cache server, do I need to specify the FailoverServers attribute? -Original Message- From: Aaron Smuts

RE: Additional problems.

2004-04-25 Thread Aaron Smuts
Are you using any element event handlers that might be keeping references to deleted objects? I've looked over the shrinker again and can't imagine how it would cause anything like this, but turn it off anyway. Are you getting any errors in the logs? Aaron -Original Message- From:

RE: Handeling events

2004-04-26 Thread Aaron Smuts
cache.getElementAttributes().addElementEventHandler( new EventHandler() ); -Original Message- From: Aaron Smuts [mailto:[EMAIL PROTECTED] Sent: Monday, April 26, 2004 11:42 AM To: 'Turbine JCS Users List' Subject: RE: Handeling events Are you inserting things into the cache after you change

RE: Handeling events

2004-04-26 Thread Aaron Smuts
() is not actually implemented. Try cache.getElementAttributes().addElementEventHandler( new EventHandler() ); -Original Message- From: Aaron Smuts [mailto:[EMAIL PROTECTED] Sent: Monday, April 26, 2004 11:42 AM To: 'Turbine JCS Users List' Subject: RE: Handeling events Are you

RE: unable to interact with remote server

2004-04-29 Thread Aaron Smuts
? Many thanks. Cheers, David Luk. -Original Message- From: Aaron Smuts [mailto:[EMAIL PROTECTED] Sent: Friday, 30 April 2004 16:38 To: 'Turbine JCS Users List' Subject: RE: unable to interact with remote server There is a script in the scripts directory called remoteCacheStats

RE: Memory leak problem

2004-05-05 Thread Aaron Smuts
The shrinker periodically wakes up and looks for expired elements. It doesn't keep the memory under the max. That's done when you put an item into the cache. I think I saw that you had the shrinker come on every few seconds, correct me if I'm wrong. I was afraid that it would keep references

RE: Out of memory problem

2004-05-06 Thread Aaron Smuts
- From: Aaron Smuts [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 9:43 AM To: 'Turbine JCS Users List' Subject: RE: Out of memory problem Send your cache.ccf and let me know how much memory you've allocated for the jvm. Aaron -Original Message- From: Parvathi

RE: Out of memory problem

2004-05-09 Thread Aaron Smuts
not pin point the error yet though. It did not happen straight away, only after the server was running for a few days. The solution is to restart the server at the moment. We only use memory cache and we do use schrinkers on some regions. -Original Message- From: Aaron Smuts [mailto

RE: unable to interact with remote server

2004-05-09 Thread Aaron Smuts
. -Original Message- From: Aaron Smuts [mailto:[EMAIL PROTECTED] Sent: Friday, 30 April 2004 16:38 To: 'Turbine JCS Users List' Subject: RE: unable to interact with remote server There is a script in the scripts directory called remoteCacheStats. You will have to get set

RE: Out of memory problem

2004-05-09 Thread Aaron Smuts
(in an XML processing library). Good luck anyway, Matt. -- Original Message -- Reply-To: Turbine JCS Users List [EMAIL PROTECTED] Date: Sun, 09 May 2004 15:15:05 -0500 From: Aaron Smuts [EMAIL PROTECTED] Subject: RE: Out of memory problem To: 'Turbine JCS Users List' [EMAIL PROTECTED] I've

new shrinker setting, new disk cache feature-- reducing memory spikes and dead disk keys RE: Out of memory problem

2004-05-09 Thread Aaron Smuts
not uncommon (in an XML processing library). Good luck anyway, Matt. -- Original Message -- Reply-To: Turbine JCS Users List [EMAIL PROTECTED] Date: Sun, 09 May 2004 15:15:05 -0500 From: Aaron Smuts [EMAIL PROTECTED] Subject: RE: Out of memory problem To: 'Turbine JCS Users List' [EMAIL

RE: Regd Serializing Cache

2004-05-09 Thread Aaron Smuts
it as an instance variable. This does tie your code to JCS though if you don't have a wrapper. Aaron -Original Message- From: Aaron Smuts [mailto:[EMAIL PROTECTED] Sent: Sunday, May 09, 2004 9:57 PM To: 'Turbine JCS Users List' Subject: RE: Regd Serializing Cache That might

RE: Out of memory problem

2004-05-09 Thread Aaron Smuts
PROTECTED] Date: Sun, 09 May 2004 15:15:05 -0500 From: Aaron Smuts [EMAIL PROTECTED] Subject: RE: Out of memory problem To: 'Turbine JCS Users List' [EMAIL PROTECTED] I've been profiling JCS for days. I still have more work to do, but I have a few ideas. The shrinker does not maintain

RE: Latest Download

2004-05-10 Thread Aaron Smuts
At this point, you need to check out JCS and build it. Aaron -Original Message- From: Parvathi Rajaraman [mailto:[EMAIL PROTECTED] Sent: Monday, May 10, 2004 8:28 PM To: JCS MAILING LIST (E-mail) Subject: Latest Download Hi, Where can I download the latest JCS jar from.The

RE: Latest Download

2004-05-10 Thread Aaron Smuts
Until we have a beta release, I've provided an easy way to get a JCS jar. I will remove this after the beta release. This is not guaranteed to be current. The best way to get a jar is to build the project. http://cvs.apache.org/viewcvs.cgi/jakarta-turbine-jcs/tempbuild/jcs-1.0- dev.jar

RE: Thread Control for Element Event Queue Processor - Number ofThreads too high

2004-05-20 Thread Aaron Smuts
I think we may need something like a throttle. I'm working the getting the patches in right now. Aaron -Original Message- From: Travis Savo [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 7:56 PM To: 'Turbine JCS Users List' Cc: '[EMAIL PROTECTED]' Subject: RE: Thread

RE: Why the caching API should use Serializable rather than Object

2004-05-23 Thread Aaron Smuts
I've been thinking about Bloch's item 24. (I haven't finished the book yet, but so far it is definitely one of the best books on Java I've seen. Thanks for the recommendation.) One big worry is with mutable keys. If someone uses a mutable object as a key and monkey with it after putting it in

RE: Latest Download

2004-05-27 Thread Aaron Smuts
Hi Aaron, This is the one cvsgrab -rootUrl http://cvs.apache.org/viewcvs/jakarta-turbine-jcs/ -packagePath org -destDir c:\TEMP -proxyHost BASILMAW2K -proxyPort 5865 I m using a NTLM proxy Cheers Parvathi -Original Message- From: Aaron Smuts [mailto:[EMAIL PROTECTED

RE: diff between Remote Cache and Lateral TCP Cache

2004-06-20 Thread Aaron Smuts
That should be a configuration decision. By default, I thought any get would result in local storage of the object. I don't remember making it otherwise. I'm still thinking about Travis's nice description of the remote cache. Aaron -Original Message- From: Hanson Char [mailto:[EMAIL

RE: diff between Remote Cache and Lateral TCP Cache

2004-06-20 Thread Aaron Smuts
Are you using the remote cache or the lateral? The remote cache should suit your needs. I would never use the lateral for gets, except to cluster remote caches, maybe. The javagroups auxiliary would meet your needs and so will the remote. The remote cache can be configured to issue remove

RE: Lateral Cache and JGroups.

2004-06-24 Thread Aaron Smuts
There are two versions. The version I am trying to make robust seems to be fully functional. If you put something like this in your cache.ccf jcs.auxiliary.LJG=org.apache.jcs.auxiliary.lateral.LateralCacheFactory jcs.auxiliary.LJG.attributes=org.apache.jcs.auxiliary.lateral.LateralCac

to do

2004-06-24 Thread Aaron Smuts
For starters, these are some things we could use We need a way to configure the cache via jndi or something so that the same ear or war can be deployed to multiple servers. We need some way for the disk cache to defragment at a certain time or interval. It would be acceptable for it to be

RE: Remote Cache, issues

2004-10-18 Thread Aaron Smuts
Sounds like we created a bug in when we altered the queues. I need to look into it. Aaron -Original Message- From: Matthew Cooke [mailto:[EMAIL PROTECTED] Sent: Monday, October 18, 2004 2:06 PM To: Turbine JCS Users List Subject: Remote Cache, issues I've replaced the version of

RE: java.lang.OutOfMemoryError for more than 13 regions

2004-11-16 Thread Aaron Smuts
This is configurable (see the cache.ccf in src/conf), but that is way too large as a default. Here are some new disk cache config parameters: #new disk cache parameter. jcs.auxiliary.DC.attributes.maxKeySize=1 jcs.auxiliary.DC.attributes.optimizeAtRemoveCount=300 I'm setting the default to

new features in jcs-1.2-dev

2005-01-13 Thread Aaron Smuts
New in jcs-1.2-dev: http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-turbine-jcs/tempbuild/jcs-1.2-dev.jar?rev=1.1 1. The disk cache now has more configuration options exposed. You can set the purgatory size, recycle bin size, etc. Also, you can set a bound on the purgatory. This solves

RE: Thread deadlock in CacheEventQueue class

2005-01-13 Thread Aaron Smuts
I suspect that it was the remove / put problem that I solved in 1.1.2. It was the only known problem of that sort. It may be due to iteration but I thought this was resolved. Iteration is very problematic on an active collection. There is no really good way to do it. We basically copy the keys

Re: Time to draw data from the JCS

2005-01-25 Thread Aaron Smuts
It depends on the configuration. If your unit test has the log level for JCS set to debug, then it will be much much slower. If your unit tests is configured to use a disk cache and the production test is not, then the times could be affected, but not by that much. . . . Under all conditions

site updated

2005-01-27 Thread Aaron Smuts
I update the site and added docs. Sorry that it took so long to get Travis to the committers list. The current dev version is 1.2.2. Remote server chaining and failover is now functional. I'll add a FAQ to the docs soon. Suggestions are welcome. We also need to acknowledge our

RE: 1.2.4-dev fix -- RE: Excessive number of JCS objects in memory

2005-01-31 Thread Aaron Smuts
lateral cache. It's damn fast and seems to recover nicely when a node goes down. It is very difficult to unit test the remote and lateral auxiliaries since the cache only works as a singleton. Any suggestions are welcome. Aaron -Original Message- From: Aaron Smuts [mailto:[EMAIL

RE: JCS 1.2 - CompositeCache:get(571)--java.lang.NullPointerExce ption

2005-02-09 Thread Aaron Smuts
Upgrade to 1.2.4-dev. I'll change the log message if it hasn't been changed already. Good idea. Can you send me a more complete stack trace, so I can investigate a bit further. I wonder if it could be related to the key you are passing in. . . . Aaron -Original Message- From:

RE: JCS 1.2 - CompositeCache:get(571)--java.lang.NullPointerExce ption

2005-02-12 Thread Aaron Smuts
org.apache.jcs.engine.control.CompositeCache:get(436)--get: key = **, localOnly = false DEBUG org.apache.jcs.engine.control.CompositeCache:get(467)--FeatureHelp - Memory cache hit Thanks, Tom -Original Message- From: Aaron Smuts [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 1:55 PM To: 'Turbine

Re: JCS Setup Questions

2005-03-06 Thread Aaron Smuts
that you run a separate process, but it is a better model overall. Aaron Thanks in advance, Daniel --- Aaron Smuts [EMAIL PROTECTED] wrote: Hi Daniel. A removeAll sends one message, not a message for each item. Jgroups is fine, but it is slower than the otehr options