wood burning stoves 2.0*
The moose likes Java in General and the fly likes  Object Size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark " Object Size" Watch " Object Size" New topic
Author

Object Size

jaya sudha
Greenhorn

Joined: Jun 18, 2004
Posts: 20
How to find the size of memory allocated for an object


Sudha
Igor Ko
Ranch Hand

Joined: Jun 24, 2002
Posts: 90
It is not very simple, see library from:

http://www.javaworld.com/javaworld/javaqa/2003-12/02-qa-1226-sizeof.html

Them use introspection, and build tree for all including objects, until
go to primitive type.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Moving this to the Intermediate forum...


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Object Size
 
Similar Threads
please tell me
object
instance of class
Maximum size of Java Object
Is there a limit to the size of object that can be kept in a session?