I'm don't know everything, but I'll try. Note that webskins are not
currently managed explicitly in the cache, and won't effect stats. Only
object data is tracked.

Hit: the requested object was in cache
Miss: the requested object was not in cache (flushing functionality, i.e.
user changes or flushcache, removes data from the cache and will cause
misses)
Flush: user changed the data or requested a rebuild / flush from the tray on
the front end
Eviction: if the upper limit set on the object broker is hit, FarCry will
clear out less recently used content. This tracks that event.
Null Hit: this is where soft references come in - the only thing the docs
say about them is that they are cleared before the JVM throws an
out-of-memory error. That leaves a lot of room for when it can happen and
what the trigger is, but the consequences (a null reference) can be
detected, and this stat attempts to track that.

Evictions are based on the objectbroker limit set on the content type (the
attribute should be described on the wiki ... somewhere).

Null hits should correspond to reaps.

A high Hit/Miss is good. You should also keep an eye on Null Hits as it can
be indicative of memory issues - perhaps the object broker limit should be
lowered.

Blair

On Fri, Sep 9, 2011 at 7:33 AM, Tomek kott <[email protected]> wrote:

> Speaking of the new objectbroker functions, could someone more
> knowledgeable than I correct my understanding of what each of the object
> broker report headers is supposed to mean? Sorry if I missed this
> somewhere...
>
> Specifically:
>
> *What counts as a "Hit"?*
> The object in the objectbroker (i.e., a combination of the type, objectid,
> webskin, url parameters, any other cachable information) was found and can
> be returned as is.
>
> *What counts as a "Miss"?*
> EITHER
>    The object was changed / removed as another thread / user / whatever
> changed or borked the original reference
> OR
>    The object was not found at all in the objectbroker cache (could be
> because it is the first hit, the type was flushed, etc.)
> *
> What counts as a "Flush"?
> *The type object changed (i.e., someone edited a dmHTML) and or a
> descendent changed
> *
> What counts as an "Eviction"?
> *There is no more space in the objectbroker cache for this kind of object
> OR
> There is no more memory available for FarCry to use for the objectbroker.
> Rather than crash, get rid of some entries
>
> *What counts as a "Null Hit"?
> *The object should have been there, but the reference has been put in the
> recycling bin awaiting to be reaped
>
> *What counts as a "Reap"?*
> Objects that were put in the recycler and subsequently deleted from the
> memory available.
>
>
> With all that said, I have a few questions:
>
> 1) If one had infinite memory, one wouldn't need to have any evictions,
> right?
> 2) If there are null hits, one would also expect there to be a few reaps as
> the recycler does its work, right?
> 3) Generally a high hit/miss ratio is indicative that things are cached
> well and that they aren't changing often.
>
> Thanks!
>
> Tomek
>
>
>
>
>
>  --
> You received this message cos you are subscribed to "farcry-dev" Google
> group.
> To post, email: [email protected]
> To unsubscribe, email: [email protected]
> For more options: http://groups.google.com/group/farcry-dev
> --------------------------------
> Follow us on Twitter: http://twitter.com/farcry
>

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

Reply via email to