Skip to content

Instantly share code, notes, and snippets.

@pingles
Created March 23, 2015 08:57
Show Gist options
  • Save pingles/9f8f61377d7c34c511d8 to your computer and use it in GitHub Desktop.
Save pingles/9f8f61377d7c34c511d8 to your computer and use it in GitHub Desktop.
# memory profile
# $ sudo jmap -J-d64 -F -histo <PID>
num #instances #bytes Class description
--------------------------------------------------------------------------
1: 947931 162798664 char[]
2: 45135 106753792 byte[]
3: 214155 68806464 int[]
4: 895438 35817520 java.util.LinkedHashMap$Entry
5: 1210186 29044464 java.util.concurrent.ConcurrentSkipListMap$Node
6: 935333 22447992 java.lang.String
7: 842963 20231112 java.lang.Double
8: 442350 10616400 java.lang.Long
9: 73553 10131864 * ConstMethodKlass
10: 421218 10109232 java.util.concurrent.ConcurrentSkipListMap$Index
11: 73553 9424656 * MethodKlass
12: 2082 8570112 java.util.HashMap$Entry[]
13: 8213 8291496 * ConstantPoolKlass
14: 8213 7842680 * InstanceKlassKlass
15: 66406 5312480 java.lang.reflect.Method
16: 7460 5011648 * ConstantPoolCacheKlass
17: 5050 2031128 * MethodDataKlass
18: 38587 1825912 java.lang.Object[]
19: 1516 1348632 java.nio.ByteBuffer[]
20: 8645 1106208 java.lang.Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment