cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Upayavira" ...@upaya.co.uk>
Subject Re: Switching cache to Persistent Store
Date Mon, 11 Aug 2003 14:53:58 GMT
<?xml  version="1.0" ?><html>
<head>
<title></title>
</head>
<body>
<div align="left"><font face="Arial"><span style="font-size:10pt">On 11
Aug 2003 at 16:41, Sylvain Wallez wrote:</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
Upayavira wrote:</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;On 11 Aug 2003 at 8:49, Geoff Howard wrote:</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&#160; </span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;Joerg Heinicke wrote:</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;&#160;&#160;&#160; </span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;&gt;IIRC it's a Jetty /feature/. Tomcat does not do this.</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;&gt;</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;&gt;Joerg</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;&gt;</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;&gt;&#160;&#160;&#160;&#160;&#160; </span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;&gt;</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;&gt;&gt;I've just done a further check which makes this problem easier
to</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;&gt;&gt;see: 1) add the &lt;cache&gt;&lt;parameter name=&quot;store&quot;</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;&gt;&gt;value=&quot;org.apache.excalibur.store.Store&quot;/&gt;
&lt;/cache&gt; thing to</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;&gt;&gt;cocoon.xconf. 2) Start Cocoon in Jetty 3) Load a page to get</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;&gt;&gt;something into the cache, e.g:</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;&gt;&gt;http://localhost:8888/samples/hello-world/ 4) Go to</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;&gt;&gt;http://localhost:8888/samples/status.html and you'll see your</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;&gt;&gt;pages in the default store. Correct. 5) Shut down Jetty and</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;&gt;&gt;restart 6) Go back to http://localhost:8888/samples/status.html</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;&gt;&gt;and you're pages have disappeared from the default store.
Surely</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;&gt;&gt;this is wrong!</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;&gt;&gt;</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;&gt;&gt;Regards, Upayavira</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;&gt;&gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;&gt;&gt;</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;Yes, I found this when working on the event-based caching.&#160; Jetty</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;apparently deletes (or at least does not reuse) its work directory.</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;This would also cause XSP's to be recompiled after startup.&#160; Anyone</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;know Jetty enough to figure out how to re-configure this?</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;&#160;&#160;&#160; </span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&gt;</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;But the same thing is happening with the CLI. It isn't deleting its</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;work directory, but it certainly isn't reusing it. Any ideas what I</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;can do about it? Might it be the same thing affecting the CLI and</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;Jetty?</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;&#160; </span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
&gt;</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
An idea : the MRUMemoryStore swaps its content to disk either when</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
some memory limit is reached, either on dispose(). Does the CocoonBean</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">&gt;
call dispose() on Cocoon ?</span></font></div>
<div align="left"><br/></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">It calls:
ContainerUtil.dispose(this.cocoon)</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">But I'm
finding that even the persistent DefaultStore isn't persistent. The 
MRUMemoryStore certainly doesn't survive a restart.</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">Upayavira</span></font></div>
<div align="left"></div>
</body>
</html>

Mime
View raw message