Skip to content

Instantly share code, notes, and snippets.

@lawulu
Created July 6, 2022 11:14
Show Gist options
  • Save lawulu/97fb2ad897ed60c4162d552fbdd55b3f to your computer and use it in GitHub Desktop.
Save lawulu/97fb2ad897ed60c4162d552fbdd55b3f to your computer and use it in GitHub Desktop.
trino
jmap -histo:live 24339 | more
num #instances #bytes class name (module)
-------------------------------------------------------
1: 227198660 12385906488 [B (java.base@11.0.13)
2: 142153505 4548912160 java.lang.String (java.base@11.0.13)
3: 14945809 4065260048 org.apache.hadoop.hdfs.protocol.DatanodeInfo
WithStorage
4: 44837434 1434797888 io.trino.hadoop.$internal.com.google.protobu
f.LiteralByteString
5: 3910752 1063724544 org.apache.hadoop.hdfs.protocol.DatanodeInfo
WithStorage
6: 18864242 905483616 java.util.LinkedList (java.base@11.0.13)
7: 18813213 827394328 [Ljava.lang.String; (java.base@11.0.13)
8: 3532799 508723056 java.net.URI (java.base@11.0.13)
9: 2495060 439130560 org.apache.hadoop.hdfs.protocol.HdfsLocatedF
ileStatus
10: 4981935 398554800 org.apache.hadoop.hdfs.protocol.LocatedBlock
11: 11732260 375432320 io.trino.hadoop.$internal.com.google.protobu
f.LiteralByteString
12: 9963877 318844064 org.apache.hadoop.io.Text
13: 4981935 278988360 org.apache.hadoop.security.token.Token
14: 4821933 273979400 [Ljava.lang.Object; (java.base@11.0.13)
15: 4981939 239133088 [Lorg.apache.hadoop.fs.StorageType;
16: 4981936 239132936 [Lorg.apache.hadoop.hdfs.protocol.DatanodeIn
foWithStorage;
17: 2477612 218029856 org.apache.hadoop.fs.BlockLocation
18: 631095 209928672 [D (java.base@11.0.13)
19: 4981935 199277400 org.apache.hadoop.hdfs.protocol.Block
20: 4366472 174658880 java.util.ArrayList (java.base@11.0.13)
21: 2494130 159624320 org.apache.hadoop.hdfs.protocol.LocatedBlocks
22: 4981935 159421920 org.apache.hadoop.hdfs.protocol.ExtendedBlock
23: 4849580 155186560 io.airlift.units.DataSize
24: 2495060 139723360 org.apache.hadoop.hdfs.protocol.FsPermissionExtension
25: 3048882 121955280 java.util.RegularEnumSet (java.base@11.0.13)
26: 636521 112027696 org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatus
27: 3303587 105714784 io.airlift.units.Duration
28: 1303584 104286720 org.apache.hadoop.hdfs.protocol.LocatedBlock
29: 444570 93350272 [Ljava.util.HashMap$Node; (java.base@11.0.13)
30: 264895 84766400 io.trino.operator.OperatorStats
31: 2607172 83429504 org.apache.hadoop.io.Text
32: 2471772 79143424 [Lorg.apache.hadoop.fs.BlockLocation;
33: 1303584 73000704 org.apache.hadoop.security.token.Token
34: 1036690 66348160 java.util.LinkedHashMap$Entry (java.base@11.0.13)
35: 2655487 63731688 org.apache.hadoop.fs.Path
36: 1305872 62681856 java.util.HashMap$Node (java.base@11.0.13)
37: 1303588 62572208 [Lorg.apache.hadoop.fs.StorageType;
38: 1303585 62572056 [Lorg.apache.hadoop.hdfs.protocol.DatanodeInfoWithStorage;
39: 2347583 56341992 java.util.Optional (java.base@11.0.13)
40: 632044 55619872 org.apache.hadoop.fs.BlockLocation
41: 127938 53350816 [I (java.base@11.0.13)
42: 1303584 52143360 org.apache.hadoop.hdfs.protocol.Block
43: 724113 46343232 java.util.HashMap (java.base@11.0.13)
@lawulu
Copy link
Author

lawulu commented Jul 6, 2022

jmap --heap --pid 24339
Attaching to process ID 24339, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 11.0.13+8

using thread-local object allocation.
Garbage-First (G1) GC with 43 thread(s)

Heap Configuration:
MinHeapFreeRatio = 40
MaxHeapFreeRatio = 70
MaxHeapSize = 64424509440 (61440.0MB)
NewSize = 1363144 (1.2999954223632812MB)
MaxNewSize = 38654705664 (36864.0MB)
OldSize = 5452592 (5.1999969482421875MB)
NewRatio = 2
SurvivorRatio = 8
MetaspaceSize = 21807104 (20.796875MB)
CompressedClassSpaceSize = 1073741824 (1024.0MB)
MaxMetaspaceSize = 17592186044415 MB
G1HeapRegionSize = 33554432 (32.0MB)

Heap Usage:
G1 Heap:
regions = 1920
capacity = 64424509440 (61440.0MB)
used = 43059670496 (41064.90182495117MB)
free = 21364838944 (20375.098175048828MB)
66.83740531404813% used
G1 Young Generation:
Eden Space:
regions = 315
capacity = 16844324864 (16064.0MB)
used = 10569646080 (10080.0MB)
free = 6274678784 (5984.0MB)
62.74900398406375% used
Survivor Space:
regions = 1
capacity = 33554432 (32.0MB)
used = 33554432 (32.0MB)
free = 0 (0.0MB)
100.0% used
G1 Old Generation:
regions = 988
capacity = 38386270208 (36608.0MB)
used = 32456469984 (30952.901824951172MB)
free = 5929800224 (5655.098175048828MB)
84.5522886389619% used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment