I run jmap on my JVM to try to understand some memory leaks and I discovered something strange : the java.lang.Long
use 24 bytes instead of 8 !!!
Can some tell me where is my mistake ?
num #instances #bytes class name
----------------------------------------------
1: 11043837 530104176 java.util.HashMap$Entry
2: 15788616 378926784 java.lang.Long
3: 2933013 301617976 [C
#bytes / #instance => 378926784 / 15788616 => 24 bytes
WTF ????