ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: cache monitor?
Date Fri, 04 Feb 2005 01:33:15 GMT
There is a way to get the hit ratio....but unfortunately it's burried
pretty deep.  Basically what you need to do is:  cast the client to a
SqlMapClientImpl, get the SqlMapExecutorDelegate, get the cache model
by its id, then call getHitRatio() on the cache model.

I suppose we could make this more accessible.  ;-)


On Wed, 2 Feb 2005 15:39:01 -0800, Daniel Ryan <dryan@1up.com> wrote:
> Is it possible to get a view into my LRU caches to see how they are
> populating and how much memory each is using?
> I'm using Ibatis SQL Map version 2.0.8.   Guess I could modify the
> source a bit, but just checking to see if there is an api available.
> Thanks, Dan

View raw message