Java - 可用的垃圾收集算法 [英] Java - available garbage collection algorithms
问题描述
有谁知道一个合适的资源来读取java中的可用垃圾收集机制?到目前为止,我找到了几个网站,但他们没有包含关于何时使用哪个和哪些实现的全面描述。 (我指的是Oracle的jdk)到目前为止,在Java Hotspot VM中有4种可用的GC算法:
/ p> 您可以在以下参考资料中找到有关这些GC算法的更多信息。 $ b 书籍: 会谈/文章:
li>
邮寄名单:
Does anyone know a proper resource to read on the available garbage collection mechanisms in java? So far I found a couple of websites but they did not contain a comprehensive description with respect to when to use which and what the implementation was. (I am referring to Oracle's jdk)
As of today, there are 4 GC algorithms available in the Java Hotspot VM:
- The Serial GC - recommended for client-style applications that do not have low pause time requirements.
- The Parallel GC - use when the throughput matters.
- The Mostly-Concurrent GC (also known as Concurrent Mark-Sweep GC(CMS)) - use when the latency matters.
- The Garbage First GC (G1) - new GC algorithm, for CMS replacement.
You can find more information about these GC algorithms in the references below.
Books:
- Java Performance - practical guide, contains chapters on GC, explains comprehensively when and how to use various Hotspot GC algorithms,
- The Garbage Collection Handbook - Garbage-Collection theory explained, mentions all available GC techniques.
Talks/Articles:
- Java One 2012 Advanced JVM Tuning
- Java One 2012 G1 Garbage Collector Performance Tuning
- Garbage Collection Tuning Guide
- Java HotSpot Garbage Collection
Mailing List:
这篇关于Java - 可用的垃圾收集算法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!