当前位置:网站首页>GC垃圾回收器详解
GC垃圾回收器详解
2022-07-28 17:06:00 【一梦无痕bzy】
一、GC演进

垃圾回收器的发展路线是随着内存越来越大而演进的。从分代算法演进到不分代算法(jvm调优参数越来越少)。上图虚线部分是老年代和新生代可以配合使用的
各个垃圾回收器清理内存的大小

目前jdk1.8默认用的就是ps+po(parallelGC),所谓的jvm调优绝大多数就是对ps+po调优(当然可以选择更换为其它的垃圾回收器)。serial和serial old、parnew和cms也比较常用

1、serial
单线程垃圾回收器,只用一个gc线程去回收。当它开始工作的时候所有其余线程全部停止,包括我们自己定义的线程。所以用stop the world(stw)来形容。工作在新生代
2、serial old
和上面一样,只是工作在老年代
3、parallel scaveng
边栏推荐
- Is the training institution of software testing reliable
- Wired: who owns the art of the future? Openai allows dall-e users to commercialize their works. At present
- 记录自己在厦门两年来的面试经历--完结篇
- Golang concurrent lock
- npm 无法将“npm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
- Noise of creative coding
- 实验楼----PHP大法
- Ue5 gas learning notes 1.7 task ability tasks
- Introduction to oscilloscope
- 不理解模块化、组件化、插件化的区别怎么行?
猜你喜欢
随机推荐
LeetCode_63_不同路径Ⅱ
USB type-C details
Is the training institution of software testing reliable
Brief introduction to the principle of spectrometer II
Iptables configuration
UE5 GAS 学习笔记 1.4属性集
欧美六国最快5日达 菜鸟推出快线产品 优化“端到端”履约服务
Golang 打包发布到各个平台
.net WCF wf4.5 state machine, bookmark and persistence
十进制转二进制进阶版(可转化负数以及边界值)
Golang is packaged and released to various platforms
UE5 GAS 学习笔记 1.1能力系统组件Ability System Component
Go concurrency one
VSC writes go, expected 'package' appears, found 'EOF‘
UE5 GAS 学习笔记0.1 案例预览
What is the employment prospect of software testing?
当Golang遇到高并发秒杀
Introduction to main parameters of antenna
MongoDB数据库shell命令执行
Record your interview experience in Xiamen for two years -- Conclusion









