jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sujit Jagdev" <Sujit.Jag...@casero.com>
Subject RE: Memory Management JCS Local cache
Date Mon, 27 Sep 2004 02:56:50 GMT

Sorry about the third post, but I think I have a cleaner cache.ccf, the only problem is that
memory still gets consumed. I see it go down a little and then   a minute later jumps by 10
MB.
Desperate 
Sujit

-----Original Message-----
From:	Sujit Jagdev
Sent:	Sun 9/26/2004 10:13 PM
To:	Turbine JCS Users List; turbine-jcs-user@jakarta.apache.org
Cc:	
Subject:	RE: Memory Management JCS Local cache

Ok I have trawled through the archives.
And I will try setting the memoryshrinker property to false and also cleaning up my cache.ccf.
So I am attaching my cache.ccf file to see if anyone can take a quick look to see if what
I am doing is OK.

Also, I am pasting in how I create my regions.

public class Cache {

 public static JCS JCSCachePOJO = null;
    public static JCS JCSCacheSEARCH = null;


    /**
     * Singleton
     *
     * @throws CacheNotAvailableException
     * @throws CacheException
     */
    private Cache() throws CacheException {
        //   JCS.setConfigFilename("T:\\head\\cache.ccf");
          if ( JCSCachePOJO == null ){
              JCSCachePOJO = JCS.getInstance("JCSCachePOJO");
          }
          if ( JCSCacheSEARCH == null ){
            JCSCacheSEARCH = JCS.getInstance("JCSCacheSEARCH");
          }

     }

 ...
...
...

}

So, to summarize, all I want is two regions held in memory. ( memory only cache ) on a very
busy tomcat server.
HELP!
Sujit
PS I love the fact that JCS doesnt throw any ObjectNotFoundExceptions.

-----Original Message-----
From:	Sujit Jagdev
Sent:	Sun 9/26/2004 9:02 PM
To:	turbine-jcs-user@jakarta.apache.org
Cc:	
Subject:	RE: Memory Management JCS Local cache



Dear All,

I am VERY VERY new to JCS.
I have incorporated it into my web app, but I cant seem to stop its memory footprint from
growing.
I have the following lines to my cache.ccf file but to no avail.



# DEFAULT CACHE REGION

# sets the default aux value for any non configured caches
jcs.default=DC
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=500
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.default.cacheattributes.UseMemoryShrinker=true
jcs.default.cacheattributes.MaxMemoryIdleTimeSeconds=360
jcs.default.cacheattributes.ShrinkerIntervalSeconds=15
jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.default.elementattributes.IsEternal=false
jcs.default.elementattributes.MaxLifeSeconds=60
jcs.default.elementattributes.IdleTime=1
jcs.default.elementattributes.IsSpool=true
jcs.default.elementattributes.IsRemote=false
jcs.default.elementattributes.IsLateral=true

I ONLY want to use JCS as a local cache for the forseeable future.
I do see it removing objects where the maxidletime has beedn reached.
But what I what is that it reaches a set max limit and stop growing from then on.
It is a very busy web server. about 50 tcp/ip connections inbound a sec during peak times.
PLEASE HELP!
I am also attaching my cache.ccf, as I am afraid I have done something silly.
Thanks
Sujit







---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-jcs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-jcs-user-help@jakarta.apache.org







Mime
View raw message