Skip to content

Commit f56b0e3

Browse files
committed
update jvm notes
1 parent 59712c0 commit f56b0e3

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

Notes/jvm.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,21 @@ JAVA中可作为GC Roots的对象包括:
3232
主要是分为串行(serial),并行(parallel),并发(concurrent)三个大的类别
3333

3434
##### **young genetation**
35-
1. Serial(mark-copy):stop the world,然后单线程收集,可以配合CMS
36-
2. ParNew(mark-copy):stop the world,然后多线程收集,可以配合CMS
37-
3. Parallel Scavenge(mark-copy):stop the world,有限制的多线程收集
35+
1. Serial(mark-copy):stop the world,然后单线程收集,可以配合CMS,client模式青年代默认算法,GC日志关键字:DefNew(Default New Generation)
36+
2. ParNew(mark-copy):stop the world,然后多线程收集,可以配合CMS,server模式青年代默认算法,GC日志关键字:ParNew(Parallel New Generation)
37+
3. Parallel Scavenge(mark-copy):stop the world,有限制的多线程收集,不能和CMS组合,关注吞吐量,GC日志关键字:PSYoungGen
3838

3939
##### **old generation**
40-
1. Concurrent Mark Sweep(as title):部分 stop the world,多线程收集
41-
2. Serial Old(mark-compact): stop the world,单线程收集,CMS备选方案
42-
3. Parallel Old(mark-compact):stop the world,多线程收集
40+
1. Concurrent Mark Sweep(mark-sweep as title):部分 stop the world,多线程收集
41+
2. Serial Old(mark-compact): stop the world,单线程收集,CMS备选方案,GC日志关键字:Tenured
42+
3. Parallel Old(mark-compact):stop the world,多线程收集,只能和Parallel Scavenge组合使用,GC日志关键字:ParOldGen
4343

4444
##### **G1**
45-
将java heap 划分为多个 region。 整体上看 是 mark-compact 局部上看(region之间)上看 是 mark-copy
45+
将java heap 划分为多个 region。 整体上看 是 mark-compact 局部上看(region之间)上看 是 mark-copy
46+
47+
##### 各种收集器的组合方式
48+
![image](pic/垃圾收集器.jpg)
49+
50+
### 参考
51+
1. 《深入理解Java虚拟机》
52+
2. [Major GC和Full GC的区别是什么?触发条件呢?](https://www.zhihu.com/question/41922036/answer/93079526)

Notes/pic/垃圾收集器.jpg

95.1 KB
Loading

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy