Possible Duplicate:
In Java, what is the best way to determine the size of an object?
Is there a way to find how much memory any java object is using? e.g: Consider the class below
class A {
byte b;
}
When i do: new A()
, How much memory is used, assuming that we are running on a 64-bit JVM?