Java - 可用的垃圾收集算法 [英] Java - available garbage collection algorithms

查看:102
本文介绍了Java - 可用的垃圾收集算法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道一个合适的资源来读取java中的可用垃圾收集机制?到目前为止,我找到了几个网站,但他们没有包含关于何时使用哪个和哪些实现的全面描述。 (我指的是Oracle的jdk)到目前为止,在Java Hotspot VM中有4种可用的GC算法:

/ p>


  • 串行GC - 推荐用于客户端样式的应用程序,它不具有较低的暂停时间要求。
  • >
  • 并行GC - 在吞吐量很重要时使用。 大多数并发GC 称为并发标记扫描GC(CMS)) - 当延迟很重要时使用。

    您可以在以下参考资料中找到有关这些GC算法的更多信息。 $ b 书籍:


    • Java性能 - 实用指南,包含GC章节,全面介绍何时使用以及如何使用各种Hotspot GC算法

    • 垃圾收集手册 - 垃圾收集理论解释,提及所有可用的气相色谱技术。


    会谈/文章:



    邮寄名单:


    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:

    Mailing List:

    这篇关于Java - 可用的垃圾收集算法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆