In 32 bit Server,what's the size of Java.Lang.Object
Dawid Weiss
dawid.weiss at gmail.com
Fri Oct 19 10:21:06 PDT 2012
Take a look at the memory use estimator in Apache Lucene or
stand-alone extracted project here:
https://github.com/dweiss/java-sizeof
I gave a presentation about this topic a while ago at the local JUG --
the slideshow is here:
http://www.slideshare.net/DawidWeiss/sizeofobject-how-much-memory-objects-take-on-jvms-and-when-this-may-matter
There is no recording but it should give you a hint at how alignment,
paddings and other things work (across different JVMs).
Dawid
On Fri, Oct 19, 2012 at 3:13 PM, fuyou <fuyou001 at gmail.com> wrote:
> hi all
> I am issues about in 32 bit Server,what's the size of Java.Lang.Object
> in this blog how-much-memory-is-used-by-my-java java.lang.Object: 2 * 4
> (Object header),the size of Object is 2*4
> but in the sessioCON5135_PDF_5135_0001.pdf (page 9) Object Metadata: 3
> slots of data (4 for arrays, Class: pointer to class information,Flags:
> shape, hash code, etc, Lock: flatlock or pointer to inflated monito)
> so the size of Object is 3*4
>
> who is right?
>
> --
> =============================================
>
> fuyou001
> Best Regards
>
>
>
> _______________________________________________
> hotspot-gc-use mailing list
> hotspot-gc-use at openjdk.java.net
> http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use
>
More information about the hotspot-gc-use
mailing list