【问题标题】:What is the concurrent mark-sweep generation in the heap?堆中的并发标记清除生成是什么?
【发布时间】:2011-05-22 05:31:40
【问题描述】:

在以下输出中,什么是并发标记扫描生成?

par new generation   total 24512K, used 12082K [0x00007fb3b9420000, 0x00007fb3bac20000, 0x00007fb3bac20000)
 eden space 24448K,  49% used [0x00007fb3b9420000, 0x00007fb3b9fec808, 0x00007fb3bac00000)
 from space 64K,   0% used [0x00007fb3bac10000, 0x00007fb3bac10000, 0x00007fb3bac20000)
 to   space 64K,   0% used [0x00007fb3bac00000, 0x00007fb3bac00000, 0x00007fb3bac10000)
concurrent mark-sweep generation total 8364032K, used 233100K [0x00007fb3bac20000, 0x00007fb5b9420000, 0x00007fb5b9420000)
concurrent-mark-sweep perm gen total 98304K, used 72031K [0x00007fb5b9420000, 0x00007fb5bf420000, 0x00007fb5bf420000)

我了解 eden、from、to 和 perm gen,但什么是“并发标记扫描生成”?

【问题讨论】:

  • 我猜这是总分配,而不是实际一代。注意缺少“空间”。

标签: java garbage-collection


【解决方案1】:

“concurent mark-sweep generation”是老年代。

【讨论】:

    【解决方案2】:

    我不认为存在这样的“并发标记清除生成”。 Concurrent Mark-Sweep 是指正在使用的垃圾收集算法,在这种情况下,用于收集“旧”堆。

    堆一般分3代。 Eden、From 和 To 位于新生代中,老年代包含长寿命的对象,这些对象在“新”中的多次收集中幸存下来并已被永久保存(转移到“老”代。)第三代是永久代,看起来你已经了解了。

    【讨论】:

      猜你喜欢
      • 2011-10-08
      • 2023-04-04
      • 1970-01-01
      • 1970-01-01
      • 2019-07-05
      • 2021-06-20
      • 2013-04-24
      相关资源
      最近更新 更多