generation total 3145728K, used 2200878K [0x0000000728000000, 0x00000007e8000000, 0x00000007e8000000)concurrent-mark-sweep generation total 3145728K, used 2202742K [0x0000000728000000, 0x00000007e8000000, 0x00000007e8000000)concurrent-mark-sweep generation total 3145728K, used 1891716K [0x0000000728000000, 0x00000007e8000000, 0x00000007e8000000)concurrent-mark-sweep generation total 3145728K, used 1893599K [0x0000000728000000, 0x00000007e8000000, 0x00000007e8000000)concurrent-mark-sweep generation total 2097152K, used 1464467K [0x0000000768000000, 0x00000007e8000000, 0x00000007e8000000) concurrent-mark-sweep
generation total 1572864K, used 49449K [0x0000000790000000, 0x00000007f0000000, 0x00000007f0000000) concurrent-mark-sweep generation total 1572864K, used 49237K [0x0000000790000000, 0x00000007f0000000, 0x00000007f0000000) concurrent-mark-sweep generation total 1572864K, used 49237K [0x0000000790000000, 0x00000007f0000000, 0x00000007f0000000) concurrent-mark-sweep
generation total 1572864K, used 49449K [0x0000000790000000, 0x00000007f0000000, 0x00000007f0000000) concurrent-mark-sweep generation total 1572864K, used 49237K [0x0000000790000000, 0x00000007f0000000, 0x00000007f0000000) concurrent-mark-sweep generation total 1572864K, used 49237K [0x0000000790000000, 0x00000007f0000000, 0x00000007f0000000) concurrent-mark-sweep
CMS,全称“ Concurrent-Mark-Sweep”,是一款并发的、使用标记-清除算法的垃圾回收器,如果老年代采用CMS垃圾回收器,则需要在应用服务Java虚拟机启动参数中配置关键字
3.CMS回收器 并行回收器之后就是CMS回收器了(concurrent-mark-sweep)。
mark-sweep generation total 9437184K, used 0K [0x00000005bae00000, 0x00000007fae00000, 0x00000007fae00000) concurrent-mark-sweep mark-sweep generation total 9437184K, used 0K [0x00000005bae00000, 0x00000007fae00000, 0x00000007fae00000) concurrent-mark-sweep
Parallel Scavenge:新生代收集器, 独占式, 与ParNew相似,特点:吞吐量优先 CMS:(concurrent-mark-sweep),老年代收集器,非独占式,多个线程,标记并清除算法
3.CMS回收器 并行回收器之后就是CMS回收器了(concurrent-mark-sweep)。
-XX:+UseAdaptivesizepplicy # CMS回收器:低延时 CMS(Concurrent-Mark-Sweep)收集器采用标记-清除算法,并且也会STW,只是暂停的时间非常短,适合交互性较强的应用上
不同点:一个线程和多个线程同时GC 并行和CMS(Concurrent-Mark-Sweep)区别 CMS步骤: - initial mark - concurrent marking - remark
CMS回收器:低延迟 在JDK1.5时期,Hotspot推出了一款在强交互应用中几乎可认为有划时代意义的垃圾收集器:CMS(Concurrent-Mark-Sweep)收集器,这款收集器是HotSpot
垃圾收集器实现 CMS收集器 CMS(Concurrent-Mark-Sweep)收集器,这款收集器是HotSpot虚拟机中第一款真正意义上的并发收集器,它第一次实现了让垃圾收集线程与用户线程同时工作。
[ CMS低延迟 在JDK1.5时期,Hotspot推出了一款在强交互应用中几乎可认为有划时代意义的垃圾收集器:CMS(Concurrent-Mark-Sweep)收集器,这款收集器是HotSpot虚拟机中第一款真正意义上的并发收集器
0x04dc0000) concurrent mark-sweep generation total 49152K, used 0K [0x04f50000, 0x07f50000, 0x09f50000) concurrent-mark-sweep 0x04f50000) concurrent mark-sweep generation total 49152K, used 0K [0x050e0000, 0x080e0000, 0x0a0e0000) concurrent-mark-sweep
mark-sweep generation total 62656K, used 194K [0x0000000006a00000, 0x000000000a730000, 0x000000000a940000) concurrent-mark-sweep
---- CMS 收集器 ---- 在 JDK1.5,HotSpot 推出了一款在强交互应用中几乎可认为有划时代意义的垃圾收集器:CMS(Concurrent-Mark-Sweep)收集器,这款收集器第一次实现了让垃圾收集线程与用户线程同时工作
Memory Management in the Java HotSpot Virtual Machine Why does Concurrent-Mark-Sweep (CMS) remark phase
使用的是标记-压缩算法 程序吞吐量优先的应用场景中,在 Server 模式下内存回收的性能较为不错 使用 -XX:+UseParallelGC 手动指定使用 Parallel 回收器执行内存回收任务 CMS,Concurrent-Mark-Sweep
6.CMS(老年代多线程标记清除算法) CMS 的全称是 Concurrent-Mark-Sweep 的缩写,翻译过来就是并发标记清除,它是一款「以低停顿时间为目标」的垃圾回收器,特点是低延时。
6 CMS回收器:低延迟6.1 CMS回收器介绍在JDK 1.5时期,HotSpot推出了一款在强交互应用中几乎可认为有划时代意义的垃圾收集器:CMS (Concurrent-Mark-Sweep)收集器