cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerhard Froehlich" <>
Subject RE: [PATCH] Re: Displaying status
Date Thu, 06 Dec 2001 16:04:44 GMT
>From: Sylvain Wallez []
>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, 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 ?

For each CachexxxPipline (StreamStore, EventStore) you have an own Store,
because of that the StoreJanitor was introduced!


Boren's Law: When in doubt, mumble.

To unsubscribe, e-mail:
For additional commands, email:

View raw message