I am trying to diagnose an OOM exception in my process. I am using Jmap and find that it does not report full memory usage of the JVM.
This is the output of jmap -histo:live
(truncated):
num #instances #bytes class name
----------------------------------------------
1: 36143828 1156602496 java.util.concurrent.ConcurrentHashMap$Node
2: 36122540 1155921280 java.util.UUID
3: 195 268602800 [Ljava.util.concurrent.ConcurrentHashMap$Node;
4: 4207 11351968 [B
5: 38497 3231200 [C
6: 37708 904992 java.lang.String
Adding up above numbers I get memory usage in the low 2GB's but my grafana dashboard is showing memory usage of almost 16GB!
Where is the missing memory (almost 12GB) going? How can I get the details?