0

我的任务是在应用程序上调整 GC,我正在寻找一种工具来帮助我深入监控 GC、正在发生的收集、发生的频率、它如何影响运行时间。有人知道 J9 VM 的任何好工具吗?

4

1 回答 1

0

To monitor GC activity in the IBM runtime for Java, use Health Center or enable the verbose gc log and analyze it with GCMV.

Health Center is a tool that can do live monitoring of the JVM including gc activity, threads, configuration, profiling and so on. Alternatively you can write Health Center data to a file and analyze it later.

To get even more detail that Health Center provides, you can turn on verbose GC logging with -Xverbose:gc, then a log of all gc activity is printed to stderr. You can write it to a log file with -Xverbosegclog:.

To analyze and graph the information in the verbose gc log, you can use the GCMV (Garbage Collection and Memory Visualizer) tool.

Health Center and GCMV are both available from:

http://www.ibm.com/developerworks/java/jdk/tools

于 2016-10-05T14:35:34.823 回答