When I ran below jmap command:
jmap -histo 14104
I am able to see very nice output of my objects, there instances, bytes used.
num #instances #bytes class name
----------------------------------------------
1: 1308333 398374280 [C
2: 55058 84410136 [B
3: 1548041 49537312 java.lang.ref.Finalizer
4: 1584594 38030256 java.util.HashMap$Entry
5: 1327543 31861032 java.lang.String
6: 765682 25734336 [Ljava.lang.Object;
But unfortunately this is not supported by Oracle and not available in latest Windows and Linux JDK distributions. Can someone please help suggesting alternative to jmap?