The latest jar in tempbuild (jcs-1.1-dev.jar, revision 1.3) worked. No more java.lang.OutOfMemoryError. My test initialized 100 regions each with an auxillary IndexedDiskCache with no problems and a Heap usage of only 6.58MB.
Thank you. In answer to your question, I had the error with revision 1.1 of jcs-1.1-dev.jar in cvs. (Using same test as above, it threw the OutOfMemoryError after initializing only 16 regions and the memory profiler reported a Heap size of 66MB and Heap usage of 60MB) I didn't test with the jcs-1.0-jar (I believe the results would be the same). On Mon, 15 Nov 2004 23:57:18 -0800, Aaron Smuts <[EMAIL PROTECTED]> wrote: > I'm going to make a unit test to see if I can reproduce the problem. > > Are you seeing the problem with the 1.1 jar that was in cvs and not with > the 1.0, or with neither jar? > > Please try the jar I just checked in and let me know: > > http://cvs.apache.org/viewcvs.cgi/jakarta-turbine-jcs/tempbuild/jcs-1.1- > dev.jar?rev=1.2&view=log > > Aaron > > > > > -----Original Message----- > > From: Dean Holdren [mailto:[EMAIL PROTECTED] > > Sent: Friday, November 12, 2004 8:22 AM > > To: [EMAIL PROTECTED] > > Subject: HELP: java.lang.OutOfMemoryError when more than x regions > defined > > to have IndexedDiskCache > > > > Has this been tested? I get a java.lang.OutOfMemoryError during > > startup of JCS (when the .ccf file is being parsed and the regions set > > up) > > > > I only get this error when each region has an auxillary > IndexedDiskCache. > > > > Using a build of latest source: > > 1) more than ~13 regions (with an IndexedDiskCache) -> > > java.lang.OutOfMemeoryError > > 2) 100 regions (without IndexedDiskCache) -> No error > > > > Using build from August 2003: > > 1) 100 regions (with an IndexedDiskCache) -> No error > > 2) 100 regions (without IndexedDiskCache) -> No error > > > > > > On Thu, 11 Nov 2004 11:27:25 -0500, Dean Holdren > <[EMAIL PROTECTED]> > > wrote: > > > I built JCS from source (using latest code) and I get a > > > java.lang.OutOfMemoryError when first accessing a region (I believe > > > inside CompositeCacheConfigurator). This only occurs (for my > > > configuration) if I specify more than 13 regions. > > > > > > Using a build from 8/20/2003, I can have over *100* regions (that's > as > > > high as I tested) without this error. > > > > > > My test looks like the following: > > > ********************************************************** > > > JCS.setConfigFilename("/myCacheRegions.ccf"); > > > JCS.getInstance("region1"); //<---fails > > > ********************************************************** > > > > > > myCacheRegions.ccf: > > > > > > jcs.default=indexedDiskCache > > > > > > jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttribut > es > > > jcs.default.cacheattributes.MaxObjects=100 > > > > > > jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory > .l > > ru.LRUMemoryCache > > > > > > # SYSTEM GROUP ID CACHE > > > jcs.system.groupIdCache=indexedDiskCache > > > > > > jcs.system.groupIdCache.cacheattributes=org.apache.jcs.engine.CompositeC > ac > > heAttributes > > > jcs.system.groupIdCache.cacheattributes.MaxObjects=10000 > > > > > > jcs.system.groupIdCache.cacheattributes.MemoryCacheName=org.apache.jcs.e > ng > > ine.memory.lru.LRUMemoryCache > > > > > > ##### CACHE REGIONS FOR TEST > > > > > > jcs.region.indexedRegion1=indexedDiskCache > > > > > > jcs.region.indexedRegion1.cacheattributes=org.apache.jcs.engine.Composit > eC > > acheAttributes > > > jcs.region.indexedRegion1.cacheattributes.MaxObjects=100 > > > > > > jcs.region.indexedRegion1.cacheattributes.MemoryCacheName=org.apache.jcs > .e > > ngine.memory.lru.LRUMemoryCache > > > > > > #####...... (More regions, each configured like above example) > > > > > > ##### AUXILIARY CACHES > > > > > > # Indexed Disk Cache > > > > > > jcs.auxiliary.indexedDiskCache=org.apache.jcs.auxiliary.disk.indexed.Ind > ex > > edDiskCacheFactory > > > > > > jcs.auxiliary.indexedDiskCache.attributes=org.apache.jcs.auxiliary.disk. > in > > dexed.IndexedDiskCacheAttributes > > > jcs.auxiliary.indexedDiskCache.attributes.DiskPath=c:/cache > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
