Oracle Hotspot

来源:互联网 发布:mac苹果商店 编辑:程序博客网 时间:2024/06/05 11:01

1.体系结构(Hotspot JVM Architecture)


2.memory 

2.1.Young Generation (15 times)    -->  Eden + so +s1( Survivor Space)

2.2.Old Generation

2.3.Permanent Generation

Memory Alloc

Tread Local Allocation Buffers(TLAB)


3.Garbage Collertor(gc垃圾回收器)

GC algorithms(垃圾回收算法)
0.1 Copying(压缩算法)空间利用率
0.2 Mark-Sweep(标记清除算法) 碎片太多  
0.3 Mark-Compact(标记压缩整理算法)  对象copy的代价

以上算法均采用标记算法-> DFS(3Colors)
白色 - unvisited未被标记
灰色 - 正在处理
黑色 - 已经完成

GC Implementation
0.1 Safepoint
0.2 Serial(串行)
0.3 Parallel(并行)
0.4Concurrent(多线程)










后记:好吧,以上材料来自个人整理


更多精彩内容请继续关注我的github主页:https://github.com/caicongyang

记录与分享,你我共成长 -from caicongyang





1 0