ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Goodin" <brandon.goo...@gmail.com>
Subject Re: Cache Memory Size
Date Wed, 10 Jan 2007 00:49:43 GMT
The short answer is no. There really isn't a reliable way in Java to
accomplish this from within the java code. Therefore it will not be
something that is internally supported in iBATIS. I would recommend you
select a good profiling tool and do your best to surmise memory usage from
it.

Brandon

On 1/9/07, James Johnson <johnson.james2@gmail.com> wrote:
>
>
> I was wondering if there was a way to determine the amount of memory being
> allocated by a iBatis cache. I read a thread called "Estimating amount of
> memory need for cache".  However, the thread ended on 25 Jul 2005 with
> mention of an utility being developed. Was anything ever developed? Or is
> there a some other way to determine the size of a cache?
>
> I believe that the cache is storing query statements and the resulting
> objects in memory. Are the query statements the keys in a map with the
> values being object(s)?  Also, how does the cache grow? Does it
> preallocate memory in the "map" based on the cache size or does it allocate
> just what is needed upon each object being added to the cache?
>
> Sorry for all the questions. Still fairly new to iBatis and trying to get
> a handle on these caching aspects.
>
> Thanks in advance for any help.
>

Mime
View raw message