on 1/24/01 8:21 AM, "John Thorhauer" <[EMAIL PROTECTED]> wrote:

> I want to try and get the actual in-memory size of the global cache
> (Hashtable) so that I can report it back to an administrator.  Does anyone
> know how this might be done.  From what I can tell there is no way to get the
> in-memory size of a java object but I thought that I would see if anyone else
> had an idea.

Attempt to serialize the hashtable to a byte[] and that will be the number
of bytes it is taking. :-) there is some code in turbine to do this
serialization for you...i forget where right now. :-)

-jon



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to