Return-Path: Delivered-To: apmail-jakarta-turbine-jcs-user-archive@www.apache.org Received: (qmail 75920 invoked from network); 15 Jan 2004 01:54:41 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 15 Jan 2004 01:54:41 -0000 Received: (qmail 40749 invoked by uid 500); 15 Jan 2004 01:54:25 -0000 Delivered-To: apmail-jakarta-turbine-jcs-user-archive@jakarta.apache.org Received: (qmail 40636 invoked by uid 500); 15 Jan 2004 01:54:24 -0000 Mailing-List: contact turbine-jcs-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Turbine JCS Users List" Reply-To: "Turbine JCS Users List" Delivered-To: mailing list turbine-jcs-user@jakarta.apache.org Received: (qmail 40621 invoked from network); 15 Jan 2004 01:54:24 -0000 Received: from unknown (HELO exchange.tallan.com) (63.170.158.192) by daedalus.apache.org with SMTP; 15 Jan 2004 01:54:24 -0000 Received: by exchange.net.tallan.com with Internet Mail Service (5.5.2653.19) id ; Wed, 14 Jan 2004 20:54:37 -0500 Received: from kbaum (66-108-19-106.nyc.rr.com [66.108.19.106]) by exchange.tallan.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id CLMNKS7C; Wed, 14 Jan 2004 20:54:26 -0500 From: "Baum, Karl" To: Turbine JCS Users List Message-ID: <030e01c3db0a$363c6730$0400a8c0@kbaum> References: Subject: Re: Indexed Disk Cache Configuration Date: Wed, 14 Jan 2004 20:52:19 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N All of the keys are kept in memory in JCS. That is why the keys file remains at 0. Is there more than one JVM instance pointing to this directory? When the JVM stops the problem usually goes away. Another question is what are the permissions on these files? ----- Original Message ----- From: To: "Turbine JCS Users List" Sent: Wednesday, January 14, 2004 8:48 PM Subject: Re: Indexed Disk Cache Configuration > Is there anything needs to be done in code for disk specific JCS > instance > like releasing file handle or something? > There are two files which got created automatically, one having > extension > ".data" and other ".key", but why ".key" extension file always has 0KB > size whereas ".data" one expands as I put more cache items > > > > Please respond to "Turbine JCS Users List" > > To: Turbine JCS Users List > cc: > > Subject: Re: Indexed Disk Cache Configuration > > I get this message when another jvm process has a reference to my > indexed > cache files. > ----- Original Message ----- > From: > To: "Turbine JCS Users List" > Sent: Wednesday, January 14, 2004 8:30 PM > Subject: Indexed Disk Cache Configuration > > > > I gotta use indexed disk caching and below is cache.ccf settings. > > > > When I restart my server, it gives following exception: > > [INFO] CompositeCache - -Constructed cache with name: > > eplatform_disk_cache > > [INFO] IndexedDiskCache - -Cache file root directory: c:\tmp > > [WARN] IndexedDisk - -Failed to delete eplatform_disk_cache.data 0 > > [WARN] IndexedDisk - -Failed to delete eplatform_disk_cache.data 1 > > [WARN] IndexedDisk - -Failed to delete eplatform_disk_cache.data 2 > > [WARN] IndexedDisk - -Failed to delete eplatform_disk_cache.data 3 > > [WARN] IndexedDisk - -Failed to delete eplatform_disk_cache.data 4 > > [WARN] IndexedDisk - -Failed to delete eplatform_disk_cache.data 5 > > [WARN] IndexedDisk - -Failed to delete eplatform_disk_cache.data 6 > > [WARN] IndexedDisk - -Failed to delete eplatform_disk_cache.data 7 > > [WARN] IndexedDisk - -Failed to delete eplatform_disk_cache.data 8 > > [WARN] IndexedDisk - -Failed to delete eplatform_disk_cache.data 9 > > [ERROR] IndexedDisk - -java.lang.IllegalStateException: Failed to > delete > > > > eplatform_disk_cache.data > > [ERROR] IndexedDiskCache - -Failure initializing for fileName: > > eplatform_disk_cache and root directory: c:\tmp > g.IllegalStateException: Failed to delete > > eplatform_disk_cache.data>java.lang.IllegalStateException: Failed to > > delete ep > > latform_disk_cache.data > > at > > > org.apache.jcs.auxiliary.disk.indexed.IndexedDisk.reset(IndexedDisk.java > > :316) > > at > > > org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache.(IndexedDis > > kCache.java:155) > > at > > > org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheManager.getCache(I > > ndexedDiskCacheManager.java:174) > > at > > > org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory.createCach > > e(IndexedDiskCacheFactory.java:88) > > at > > > org.apache.jcs.engine.control.CompositeCacheConfigurator.parseAuxiliary( > > CompositeCacheConfigurator.java:451) > > at > > > org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion(Com > > positeCacheConfigurator.java:297) > > at > > > org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion(Com > > positeCacheConfigurator.java:234) > > at > > > org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegions(Co > > mpositeCacheConfigurator.java:222) > > at > > > org.apache.jcs.engine.control.CompositeCacheConfigurator.doConfigure(Com > > positeCacheConfigurator.java:148) > > at > > > org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeC > > acheManager.java:244) > > at > > > org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeC > > acheManager.java:227) > > at > > > org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeC > > acheManager.java:185) > > at > > > org.apache.jcs.engine.control.CompositeCacheManager.getInstance(Composit > > eCacheManager.java:130) > > at org.apache.jcs.JCS.ensureCacheManager(JCS.java:135) > > at org.apache.jcs.JCS.getInstance(JCS.java:101) > > at > > > com.axa.eplatform.util.ecache.jcache.JCache.getCacheForRegion(JCache.jav > > a:44) > > at > > com.axa.eplatform.util.ecache.jcache.JCache.get(JCache.java:76) > > at jsp_servlet._util.__cache._jspService(__cache.java:92) > > at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) > > at > > > weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se > > rvletStubImpl.java:1058) > > > > > > > > > > > > cache.ccf > > > > # Disk Cache > > jcs.region.eplatform_disk_cache=DC > > > jcs.region.eplatform_disk_cache.cacheattributes=org.apache.jcs.engine.Co > > mpositeCacheAttributes > > > > # object will not be held in memory, straight to disk > > jcs.region.eplatform_disk_cache.cacheattributes.MaxObjects=0 > > > > > #jcs.region.eplatform_disk_cache.cacheattributes.MemoryCacheName=org.apa > > che.jcs.engine.memory.lru.LRUMemoryCache > > > #jcs.region.eplatform_disk_cache.cacheattributes.UseMemoryShrinker=true > > > #jcs.region.eplatform_disk_cache.cacheattributes.MaxMemoryIdleTimeSecond > > s=30 > > > #jcs.region.eplatform_disk_cache.cacheattributes.ShrinkerIntervalSeconds > > =60 > > > jcs.region.eplatform_disk_cache.elementattributes=org.apache.jcs.engine. > > ElementAttributes > > jcs.region.eplatform_disk_cache.elementattributes.IsEternal=true > > #jcs.region.eplatform_disk_cache.elementattributes.MaxLifeSeconds=5 > > jcs.region.eplatform_disk_cache.elementattributes.IdleTime=1 > > jcs.region.eplatform_disk_cache.elementattributes.IsSpool=true > > jcs.region.eplatform_disk_cache.elementattributes.IsRemote=false > > jcs.region.eplatform_disk_cache.elementattributes.IsLateral=false > > > > > > # Primary Disk Cache -- faster than the rest because of memory key > > storage > > > 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.DiskPath=c:\\tmp > > > > > ************************************************************************ > > ********* > > Important Note > > This email (including any attachments) contains information which is > > confidential and may be subject to legal privilege. If you are not > > the intended recipient you must not use, distribute or copy this > > email. If you have received this email in error please notify the > > sender immediately and delete this email. Any views expressed in this > > email are not necessarily the views of AXA. Thank you. > > > ************************************************************************ > > ********* > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: turbine-jcs-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: > turbine-jcs-user-help@jakarta.apache.org > > > > > > > ************************************************************************ > ********* > Important Note > This email (including any attachments) contains information which is > confidential and may be subject to legal privilege. If you are not > the intended recipient you must not use, distribute or copy this > email. If you have received this email in error please notify the > sender immediately and delete this email. Any views expressed in this > email are not necessarily the views of AXA. Thank you. > ************************************************************************ > ********* > > --------------------------------------------------------------------- To unsubscribe, e-mail: turbine-jcs-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: turbine-jcs-user-help@jakarta.apache.org