You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 15_Troubleshooting/jmap.md
+40-5Lines changed: 40 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,39 +51,74 @@ When no option is used, the jmap command prints shared object mappings. For each
51
51
52
52
Dumps the Java heap in hprof binary format to filename. The live suboption is optional, but when specified, only the active objects in the heap are dumped. To browse the heap dump, you can use the jhat(1) command to read the generated file.
Prints information about objects that are awaiting finalization.
57
62
63
+
输出等待终结(awaiting finalization)的对象信息。
64
+
65
+
66
+
> 示例: `jmap -finalizerinfo 6578`
67
+
58
68
#### -heap
59
69
60
70
Prints a heap summary of the garbage collection used, the head configuration, and generation-wise heap usage. In addition, the number and size of interned Strings are printed.
61
71
72
+
输出垃圾收集使用的堆内存汇总信息,包括 head 配置和各个分代(generation-wise)的堆使用情况。此外,也会输出内部化字符串(interned Strings)的数量和大小。
73
+
74
+
> 示例: `jmap -heap 6578`
75
+
76
+
62
77
#### -histo[:live]
63
78
64
79
Prints a histogram of the heap. For each Java class, the number of objects, memory size in bytes, and the fully qualified class names are printed. The JVM internal class names are printed with an asterisk (*) prefix. If the live suboption is specified, then only active objects are counted.
Prints class loader wise statistics of Java heap. For each class loader, its name, how active it is, address, parent class loader, and the number and size of classes it has loaded are printed.
0 commit comments