Java G1垃圾收集器日志分析器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/21399217/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 08:28:18  来源:igfitidea点击:

G1 garbage collector log analyzer

javadebugginggarbage-collectionprofiling

提问by Edge

I am looking for GC log analyzer for Garbage First collector. Many people have mentioned "IBM Pattern Modeling and Analysis Tool for Java Garbage Collector (PMAT)" but it doesn't seem to be compatible with G1 with Oracle JDK7. Can any one share which tools you have used for analyzing gc logs graphically.

我正在寻找垃圾优先收集器的 GC 日志分析器。很多人都提到了“IBM Pattern Modeling and Analysis Tool for Java Garbage Collector (PMAT)”,但它似乎与 G1 和 Oracle JDK7 不兼容。任何人都可以分享您使用哪些工具以图形方式分析 gc 日志。

采纳答案by Michi Gysel

Try GCViewer.

试试GCViewer

The fork on GitHub includes support for newer Garbage Collectors (including G1).

GitHub 上的分叉包括对较新的垃圾收集器(包括 G1)的支持。

回答by Ale?

The latest Mission Control, available as part of Java 7u40, is compatible with all Hotspot GC algorithms and is able to analyze and view the GC activity.

最新的Mission Control作为 Java 7u40 的一部分提供,与所有 Hotspot GC 算法兼容,并且能够分析和查看 GC 活动。

回答by Kire Haglin

Look at the Memory Tabin Java Mission Control, it will graph heap usage, live set, GC pauses etc. for G1.

查看Java Mission Control中的Memory 选项卡,它将绘制 G1 的堆使用情况、实时设置、GC 暂停等。

回答by Ale?

Here is a relatively up-to-date list of all various tools that you can use for GC log analysis : Garbage Collector Log Analysers:

以下是可用于 GC 日志分析的所有各种工具的最新列表:垃圾收集器日志分析器

  • (2013) JClarity's Censum Garbage Collection log analyser
  • (2013) GcViewer
  • (2012) IBM PMAT Pattern Modeling and Analysis Tool for Java Garbage Collector
  • (2012) IBM GCMV The GC and Memory Visualizer
  • (2012) verbosegcanalyzer
  • (2011) HPjmeter JVM performance analyser (includes the functionality from HPjtune which was the GC log analyser tool)
  • (2011) garbagecat
  • (2010) gclogviewer
  • (2010/2004) printgcstats (this may or may not be the PrintGCStats tool from 2004 which Sun created)
  • (2009) GCAnalysis
  • (2008) gchisto
  • (2008) gcview
  • (2008) the original GcViewer
  • (2005) Garbage Collection Analysis (GCA)
  • (2004) GCPortal
  • (2013) JClarity 的 Censum Garbage Collection 日志分析器
  • (2013) GcViewer
  • (2012) 用于 Java 垃圾收集器的 IBM PMAT 模式建模和分析工具
  • (2012) IBM GCMV GC 和内存可视化工具
  • (2012) 详细信息分析器
  • (2011) HPjmeter JVM 性能分析器(包括 HPjtune 的功能,它是 GC 日志分析器工具)
  • (2011) 垃圾猫
  • (2010) gclogviewer
  • (2010/2004) printgcstats(这可能是也可能不是 Sun 创建的 2004 年的 PrintGCStats 工具)
  • (2009) GCAnalysis
  • (2008) gchisto
  • (2008) gcview
  • (2008) 原版 GcViewer
  • (2005) 垃圾收集分析 (GCA)
  • (2004) GCPortal

回答by Jeff Taylor

R is a very powerful tool for the analysis of Java garbage collection log files. The primary difficulty is data cleansing so that information can be read into an R data frame. Once the data has been read into R, a rich set of tools may be used for thorough evaluation.

R 是一个非常强大的工具,用于分析 Java 垃圾收集日志文件。主要困难是数据清理,以便可以将信息读入 R 数据帧。一旦将数据读入 R,就可以使用一组丰富的工具进行彻底的评估。

More details are available at my blog:

更多细节可以在我的博客上找到:

回答by Dave

HPJmeter 4.4.00.0 can read GC logs with the G1GC. Tested with the following JVM args.

HPJmeter 4.4.00.0 可以使用 G1GC 读取 GC 日志。使用以下 JVM 参数进行测试。

-XX:+UseG1GC -Xloggc:c:/temp/eRGCLogs.txt -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps

-XX:+UseG1GC -Xloggc:c:/temp/eRGCLogs.txt -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps

回答by Ishara Samantha

Try Universal GC log analysing online tool http://gcloganalyzer.com

试用 Universal GC 日志分析在线工具http://gcloganalyzer.com