You can do a 'getBytes()' on Strings.. but not sure how to get the
memory from objects.
(and then use Java.reflect.array to find it's length)

http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html#getBytes()

Mark

On 6/24/05, David Harris <[EMAIL PROTECTED]> wrote:
>  
> I am exploring the control of information cached/stored in memory. 
>   
> If caching is happening in the form of structures, has any one out there
> figured out or know a way of deciding how much memory a particular structure
> is taking up? 
>   
> The thinking here is to have a variable to define how much memory is
> allocated to caching, and with a few other values such as "lastaccessed",
> decide what structures/structkeys to drop as new information is to be
> cached. 
>   
> Anyone done this before? 
>   
> Cheers, 

-- 
E: [EMAIL PROTECTED]
W: www.compoundtheory.com
ICQ: 3094740

---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to