是否有关于GC问题的食谱指南? [英] Is there a cookbook guide for GC problems?
问题描述
是否有一本食谱指南或半自动工具来调整GC for Java?
我的理由是这样的:
- 几乎任何人最终都会遇到这些问题
- 有很多可能的因素(比如20),其中只有少数会影响您的问题。 大多数人不知道如何识别关键因素,因此GC调优更为重要像黑色艺术而不是科学。不是每个人都使用HotSpot虚拟机。不同的Sun版本具有不同的GC特性。
- 没有什么动机去尝试(像每天运行虚拟机时略有不同的设置以查看它们如何播放)。 $ b
所以问题真的是:有没有什么我可以以检查列表的方式使用?或者甚至可能是一个分析GC日志或堆转储的工具,并给我特定的提示去哪里看(而不是告诉我95%的数据分配在byte []类型的对象中,这基本上是无用的)。 p>
相关问题:
各种GC信息的参考:
Oracle
这也是
Java SE 6 HotSpot [tm]虚拟机垃圾收集调优
IBM
微调垃圾收集 [链接已死]
可扩展详细工具包
$ b SAP JVM
对不起,我对SAP不太了解,提供了一些我已经找到的东西。
至于烹饪书籍,调整在这个级别上最有可能是特定应用程序,但它是一个有趣的话题。
附加
您还提到了分析工具。这里列出了一些候选人:
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:
- Almost anyone eventually has these problems
- There are many possible factors (say 20) out of which only a few affect your problem.
- Most people don't know how to identify the key factors so GC tuning is more like a black art than a science.
- Not everyone uses a HotSpot VM. Different Sun versions have different GC characteristics.
- There is little incentive to experiment (like run the VM with slightly different settings every day to see how they play out).
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:
- Appropriate Tomcat 5.5 start-up parameters to tune JVM for extremely high demand, large heap web application? which is very specific. My question is more wide.
- What are the best garbage collection settings for client side? Again very narrow scope
- Does anyone know of a good guide to configure GC in Java? HotSpot only
- JVM memory management & garbage collection book? is 80% there but I'm missing the checklist/cookbook/for-dummies approach.
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]
SAP JVM
Memory Management (Garbage Collection)
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问题的食谱指南?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!