jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Smuts <aasm...@wisc.edu>
Subject RE: Indexed Disk Cache Configuration
Date Thu, 15 Jan 2004 06:57:38 GMT
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: ankur.kumar@axa.com.au [mailto:ankur.kumar@axa.com.au]
> Sent: Thursday, January 15, 2004 12:28 AM
> To: Turbine JCS Users List
> Subject: Re: Indexed Disk Cache Configuration
> 
> As per the source code of IndexedDiskCache, keys can also be saved and
> retrieved to disk and not necessarily be maintained in memory.
> 
> Cache Manager which maintains cache is based on Singleton pattern and
> hence there can't be multiple instances pointing to same file and its
> running in Weblogic Portal Server sharing only one JVM.
> 
> Files have got RW permissions and are in windows env.
> 
> 
> 
> Please respond to "Turbine JCS Users List"
> <turbine-jcs-user@jakarta.apache.org>
> To:     Turbine JCS Users List <turbine-jcs-user@jakarta.apache.org>
> cc:
> 
> Subject:        Re: Indexed Disk Cache Configuration
> 
> 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: <ankur.kumar@axa.com.au>
> To: "Turbine JCS Users List" <turbine-jcs-user@jakarta.apache.org>
> 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"
> > <turbine-jcs-user@jakarta.apache.org>
> > To:     Turbine JCS Users List <turbine-jcs-user@jakarta.apache.org>
> > 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: <ankur.kumar@axa.com.au>
> > To: "Turbine JCS Users List" <turbine-jcs-user@jakarta.apache.org>
> > 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 <java.lan
> > > 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.<init>(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
> 
> 
> 
> 
> 
> 
>
************************************************************************
**
> *******
> 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


Mime
View raw message