[Opensymphony-oscache] Unable to write | File Name too long
Dipti Khullar <[email protected]> Wed, 13 Jan 2010 16:31:41 +0530
| Newsgroups | gmane.comp.java.open-symphony.os-cache |
|---|---|
| Message-ID | <[email protected]> |
--_000_3AC78710E591BB4488EAFC2D62BAD04118F2CDAD3ADELMAILsapien_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi
We are using OSCache in our application as an extra layer for caching homep=
ages since about 1 month and we haven't faced any issues in the same.
But recently we have observed following exceptions related to OSCache:
[2010-01-13 01:09:43.433][com.opensymphony.oscache.base.algorithm.AbstractC=
oncurrentReadCache][ERROR] [oscache] Exception persisting RBES:123740145937=
7:RB_Event:RB_Video:RB_Gallery:RB_Profile:RB_Table:RB_Download:RB_Game:rbsu=
bsection:Motor Sports 4 Wheel2010-01-13T23:59:00Z:2010-01-13T00:00:00Z:10:0=
:date:desc
com.opensymphony.oscache.base.persistence.CachePersistenceException: Unable=
to write '/opt/fatwire/oscache/application/RBES_91237401459377_23RB_26Even=
t_32RB_35Video_41RB_44Gallery_52RB_55Profile_63RB_66Table_72RB_75Download_8=
4RB_87Game_92rbsubsection_105Motor_111Sports_1184_120Wheel2010-01-13T23_139=
59_14200Z_1462010-01-13T00_16000_16300Z_16710_1700_172date_177desc.cache' i=
n the cache. Exception: java.io.FileNotFoundException, Message: /opt/fatwir=
e/oscache/application/RedBullES_91237401459377_23RB_26Event_32RB_35Video_41=
RB_44Gallery_52RB_55Profile_63RB_66Table_72RB_75Download_84RB_87Game_92rbsu=
bsection_105Motor_111Sports_1184_120Wheel2010-01-13T23_13959_14200Z_1462010=
-01-13T00_16000_16300Z_16710_1700_172date_177desc.cache (File name too long=
)
As it clearly says, that file name is too long. But we cannot change the ke=
ys as they are all created dynamically and are necessary for the page to ge=
t rendered.
I couldn't find any limits on number of characters for the filename being g=
enerated in documentation or on WIKI.
Can somebody let us know the maximum limit for these filenames or if someho=
w we can increase the same to get rid of these exceptions?
Configurations:
Application Server: Tomcat 6
Platform: Red Hat Enterprise Linux
Version: oscache-2.4.1
Java: JDK 1.5
oscache.properties:
#cache.memory=3Dtrue
cache.persistence.class=3Dcom.opensymphony.oscache.plugins.diskpersistence.=
DiskPersistenceListener
cache.path=3D/opt/fatwire/oscache/
Thanks
Dipti
--_000_3AC78710E591BB4488EAFC2D62BAD04118F2CDAD3ADELMAILsapien_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left:=
#800000 2px solid; } --></style>
</head>
<body>
<font face=3D"Arial, sans-serif" size=3D"3">
<div> </div>
<div><font size=3D"2">Hi</font></div>
<div><font size=3D"2"> </font></div>
<div><font size=3D"2">We are using OSCache in our application as an extra l=
ayer for caching homepages since about 1 month and we haven't faced any iss=
ues in the same.</font></div>
<div><font size=3D"2">But recently we have observed following exceptions re=
lated to OSCache:</font></div>
<div><font size=3D"2"> </font></div>
<div><font size=3D"2">[2010-01-13 01:09:43.433][com.opensymphony.oscache.ba=
se.algorithm.AbstractConcurrentReadCache][ERROR] [oscache] Exception persis=
ting RBES:1237401459377:RB_Event:RB_Video:RB_Gallery:RB_Profile:RB_Table:RB=
_Download:RB_Game:rbsubsection:Motor
Sports 4 Wheel2010-01-13T23:59:00Z:2010-01-13T00:00:00Z:10:0:date:desc</fon=
t></div>
<div><font size=3D"2">com.opensymphony.oscache.base.persistence.CachePersis=
tenceException: Unable to write '/opt/fatwire/oscache/application/RBES_9123=
7401459377_23RB_26Event_32RB_35Video_41RB_44Gallery_52RB_55Profile_63RB_66T=
able_72RB_75Download_84RB_87Game_92rbsubsection_105Motor_111Sports_1184_120=
Wheel2010-01-13T23_13959_14200Z_1462010-01-13T00_16000_16300Z_16710_1700_17=
2date_177desc.cache'
in the cache. Exception: java.io.FileNotFoundException, Message: /opt/fatwi=
re/oscache/application/RedBullES_91237401459377_23RB_26Event_32RB_35Video_4=
1RB_44Gallery_52RB_55Profile_63RB_66Table_72RB_75Download_84RB_87Game_92rbs=
ubsection_105Motor_111Sports_1184_120Wheel2010-01-13T23_13959_14200Z_146201=
0-01-13T00_16000_16300Z_16710_1700_172date_177desc.cache
(File name too long)</font></div>
<div><font size=3D"2"> </font></div>
<div><font size=3D"2">As it clearly says, that file name is too long. But w=
e cannot change the keys as they are all created dynamically and are necess=
ary for the page to get rendered.</font></div>
<div><font size=3D"2">I couldn’t find any limits on number of charact=
ers for the filename being generated in documentation or on WIKI.</font></d=
iv>
<div><font size=3D"2"> </font></div>
<div><font size=3D"2">Can somebody let us know the maximum limit for these =
filenames or if somehow we can increase the same to get rid of these except=
ions?</font></div>
<div><font size=3D"2"> </font></div>
<div><font size=3D"2">Configurations:</font></div>
<div><font size=3D"2"> </font></div>
<div><font size=3D"2">Application Server: Tomcat 6</font></div>
<div><font size=3D"2">Platform: Red Hat Enterprise Linux</font></div>
<div><font size=3D"2">Version: oscache-2.4.1 </font></div>
<div><font size=3D"2">Java: JDK 1.5</font></div>
<div><font size=3D"2">oscache.properties: </font></div>
<div><font size=3D"2">#cache.memory=3Dtrue</font></div>
<div><font size=3D"2">cache.persistence.class=3Dcom.opensymphony.oscache.pl=
ugins.diskpersistence.DiskPersistenceListener</font></div>
<div><font size=3D"2">cache.path=3D/opt/fatwire/oscache/</font></div>
<div><font size=3D"2"> </font></div>
<div><font size=3D"2">Thanks</font></div>
<div><font size=3D"2">Dipti</font></div>
<div><font size=3D"2"> </font></div>
</font>
</body>
</html>
--_000_3AC78710E591BB4488EAFC2D62BAD04118F2CDAD3ADELMAILsapien_--