struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Barrows" <jbarr...@sssc.com>
Subject RE: [OT] how to calculate the size of an object
Date Thu, 08 Jul 2004 16:25:22 GMT
Whoops.. that should the problem with the first one on the list.. :)

I know.... Bad code monkey no caffeine.

> -----Original Message-----
> From: Jim Barrows 
> Sent: Thursday, July 08, 2004 9:24 AM
> To: Struts Users Mailing List
> Subject: RE: [OT] how to calculate the size of an object
> 
> 
> Only problem is, that this is the size of the object with a 
> new object, rather then being something that could be done 
> dynamically.  Not to mention
> that if this is done at run time ( which is what the original 
> poster wants I believe) then you can be completely screwed by 
> a GC run, and end up 
> with a negative number.
>  
> 
> -----Original Message-----
> From: DGraham@EvergreenInvestments.com 
> [mailto:DGraham@EvergreenInvestments.com]
> Sent: Thursday, July 08, 2004 9:10 AM
> To: Struts Users Mailing List
> Subject: Re: [OT] how to calculate the size of an object
> 
> 
> 
> http://www.google.com/search?hl=en&lr=&ie=UTF-8&q=size+java+object 
> 
> The first one looks promising. 
> 
> Dennis 
> 
> 
> 
> 
> 
> Navjot Singh <navjot.s@net4india.net> 
> 
> 
> 07/08/2004 11:57 AM 
> 
> 
> Please respond to
> "Struts Users Mailing List" <user@struts.apache.org>
> 
> 
> 
> To
> Struts Users Mailing List <user@struts.apache.org> 
> 
> cc
> 
> Subject
> [OT] how to calculate the size of an object
> 
> 	
> 
> 
> 
> 
> hi,
> 
> I use SAX parser to load an LDIF file into memory. Whatsoever data i 
> read, i fill into an object.
> 
> I need to know *the size of LDIFData object* at runtime. How 
> to do that?
> 
> Well the class structure is something like this
> 
> public class LDIFData{
>                 ArrayList cards; // collection of Card
>                 String filename;
>                 long lastLoadedTime;
> }
> 
> public class Card{
>                 String name;
>                 String email
>                 String mobile;
> }
> 
> -- 
> regards
> Navjot Singh
> 
> When you jump for joy, beware that no-one moves the ground 
> from beneath
> your feet. -- Stanislaw Lem, "Unkempt Thoughts"
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message