几乎每个人最终都会遇到 Java 的 GC 问题.
是否有针对 Java 调整 GC 的食谱指南或半自动化工具?
我的理由是:
所以问题真的是:有什么东西可以以清单的方式使用吗?或者甚至可能是一个分析 GC 日志或堆转储并向我提供具体提示的工具(而不是告诉我95% 的数据分配在 byte[] 类型的对象中",这基本上是无用的).
相关问题:
各种GC信息的参考:
甲骨文
使用 5.0 Java[tm] Virtual 调整垃圾收集机器
还有这个
Java SE 6 HotSpot[tm] 虚拟机垃圾回收调优
IBM
微调垃圾收集 [链接失效]
可扩展的详细工具包
SAP JVM
内存管理(垃圾回收)
检测内存泄漏
检测挂起/循环的虚拟机p>
分析内存不足情况
抱歉,我对 SAP 了解不多,但提供了一些我发现的东西.
就食谱而言,调优很可能是这个级别的特定应用程序,但它是一个有趣的话题.
附录
您还提到了分析工具.此处列出了一些候选人:
知道任何 Java 垃圾收集日志分析工具吗?
Almost everyone eventually runs into GC issues with Java.
Is there a cookbook guide or semi-automated tool to tune GC for Java?
My rationale is this:
So the question really is: Is there something that I can use in a check-list manner? Or maybe even a tool that analyzes GC logs or heap dumps and gives me specific hints where to look (instead of telling me "95% of the data is allocated in objects of the type byte[]" which is basically useless).
Related questions:
References for various GC information:
Oracle
Tuning Garbage Collection with the 5.0 Java[tm] Virtual Machine
and this also
Java SE 6 HotSpot[tm] Virtual Machine Garbage Collection Tuning
IBM
Fine Tuning Garbage Collection [link dead]
Extensible Verbose Toolkit
SAP JVM
Memory Management (Garbage Collection)
Detecting Memory Leaks
Detecting Hanging / Looping VMs
Analyzing Out-of-Memory Situations
Sorry I don't know much about SAP but have provided some things I have found.
As for a cookbook, tuning is most likely application specific at this level, but it is an interesting topic.
ADDENDUM
You also mentioned analysis tools. Some candidates are listed here:
Know of any Java garbage collection log analysis tools?
这篇关于是否有针对 GC 问题的食谱指南?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!