Sebastien Koechlin a écrit :
>
> Peter Royal wrote:
> > > Same problem, where are classes about caching ? I want to display what
> > > is in the cache and the number of hit for each one.
> >
> > You want to be looking at the debug output from the CachingEventPipeline and
> > the CachingStreamPipeline. Unfortunately it does not keep statistics on the
> > cache hit rate, but if you look at the debug output you can see if it did
> > pick up on the cached content or not.
>
> Here is a patch against cocoon_20_branch, I don't know if you can apply
> it
> on HEAD (I did not test).
>
> Please, do NOT include it into cocoon_20_branch CVS on apache.org, it's
> working, but eat huge quantity of memory, and displayed data are raw.
> This is not for final administrators yet.
Applied to 2.1, thanks.
I modified it a bit to output SAX events directly instead of building
large lists.
> What is inside:
> - New iterator() function on StoreJanitor.
> - Function added in StatusGenerator to display data in each store.
> - Changes on status2html stylesheet to display thoses data.
>
> Request http://localhost:8080/cocoon/status to see the result.
>
> Using a vanilia cocoon_20_branch, you have 3 different MRUMemoryStore
> (they have a different hashCode), with about 440 objects in each.
> Except for 2 object, all keys are presents in each Store.
> I think there is something wrong here. Is it my code ?
Your code looks good.
HEY, TEAM, can a cache guru look at this ? Why are there 3 stores with
the same keys in them ?
Sylvain
--
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]