> From: Peter Hargreaves [mailto:[EMAIL PROTECTED]]

Hi,

That's the bunch of questions you have!


> I'm like a blind man tuning a television!
> 
> I understand from the documentation that I can tune the setting in
> cocoon.xconf
> to control the cache, so that the most recently used objects are in
memory and
> less recently used objects are on disk. But a few points are unclear
to me -
> could someone please expain?
> 
>   <cache-transient
class="org.apache.cocoon.components.store.MRUMemoryStore"
> logger="core.store.transient">
>    <parameter name="maxobjects"           value="100"/>
>    <parameter name="use-persistent-cache" value="true"/>
>   </cache-transient>
> 
> 1) Does 'maxobject' just define the max number of objects in memory?
Or does
> it include the items on disk?

Only in memory. When new object added and count increases over max,
least recent used object is swapped to the persistent cache (read: hard
drive)

 
> 2) When <parameter name="use-persistent-cache" value="true"/> do the
cached
> objects go onto disk only when maxobjects is exceeded?

Yes, as of currect CVS. No for the 2.0.1.

 
> 3) Is there any control over the number of objects on the disk?

No. Persistent cache does not have such controls. You can extend its
implementation if you like.


> 4) When the store-janitor decides to free memory, do the freed items
go to
> persistent-cache or are they lost?

Depends on store implementation. MRU store in the CVS uses persistent
cache to swap exceeding objects. Janitor does not care what store does
with extra objects.


> When I change these settings I am unable to see what is happening.
I've tried
> using the status page and its a great start but there's not enough
detail.

Send in a patch!

Vadim

> 1) I can see total and free memory and some details about the objects
in
> cache.
> 
> 2) I don't know which are in memory and which are on disk and how much
space
> they take up. If I don't know this then how can I tell if my settings
are
> working, and how do I make decisions to change the settings?
> 
> Simple trial and error is not very usefull because I cannot get enough
> feedback about what is happening.
> 
> Any advice very welcome. Thanks.
> 
> Peter.
> 
> <MySystem> Gateway G6-350 (392,612k RAM), NT4.0sp6, jdk-1.3.1,
tomcat-4.0.1,
> cocoon2.0.2-dev, NS Nav 4.7, NS 6.1, IE 5.0, </MySystem>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to