You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
num #instances #bytes class name
----------------------------------------------
1: 1134597 5834904800 [B
2: 407694 144032664 [Ljava.lang.Object;
3: 2018132 111547480 [C
...
7: 975220 23405280 java.lang.String
...
So the bytes size of String instances are 23405280 / 975220 = 24 bytes exactly per instance (in this JVM).
It is impossible that String instances are only 24 bytes including contents.
So the bytes size in jmap -histo is shallow.
Need to discover whether the jmap -histo data byte counts are shallow, deep, or somewhere between.
Need to use data from examples in issue #4.
The text was updated successfully, but these errors were encountered: