当前位置:网站首页>JVM笔记
JVM笔记
2022-06-26 15:27:00 【YMY_666】
怎么判断哪些对象需要被回收?
根可达算法,根不可达的对象没有被任何方法引用那么就说无用的对象可被回收
垃圾回收算法有哪些?
- 标记清除会清除掉垃圾对象,但会导致不连续的内存空间。
- 标记压缩不但清除掉垃圾对象还会把有用对象压缩到一块,空出连续内存空间,所以优于标记清除。
- 拷贝是清除之后将有用对象拷贝到新的区域,比如JVM
youngGC会把新生代有用对象全部拷贝到一个空的survive区然后把eden区和另一个survivor区的对象全部清除,survivor0和survivor1两个区是轮换的总有一个区是空的,每发生一次youngGC都会把一个区的幸存对象全部拷贝到另一个survive区,也是为了解决内存碎片化问题。
垃圾回收器有哪些?
Serial串行垃圾回收器,单线程进行垃圾回收,GC时会STW,业务线程全部停止等GC完了才继续,小内存还可以,大内存垃圾回收耗时会很长
CMS concurrent mark sweep并发标记扫描,为了解决STW而诞生,可以一边回收一边执行业务线程
G1
三色标记算法
自己和自己引用的对象都找到的对象被标记为黑色
自己找到但是自己引用的对象没找到的对象被标记为灰色
自己都没有被找到的对象被标记为白色
边栏推荐
- [problem solving] the loading / downloading time of the new version of webots texture and other resource files is too long
- PHP file upload 00 truncation
- 【TcaplusDB知识库】TcaplusDB常规单据介绍
- HR export data Excel VBA
- Particle filter PF - 3D CV target tracking with uniform motion (particle filter vs extended Kalman filter)
- One click GCC script installation
- Utilisation d'abortcontroller
- Is it safe to open a new bond registration account? Is there any risk?
- 【小程序实战系列】小程序框架 页面注册 生命周期 介绍
- Seurat转h5ad总结
猜你喜欢

El dialog drag and drop, the boundary problem is completely corrected, and the bug of the online version is fixed

【ceph】CephFS 内部实现(三):快照
Advanced operation of MySQL database basic SQL statement tutorial

SQLite loads CSV files and performs data analysis
![[tcapulusdb knowledge base] tcapulusdb OMS business personnel permission introduction](/img/7b/8c4f1549054ee8c0184495d9e8e378.png)
[tcapulusdb knowledge base] tcapulusdb OMS business personnel permission introduction
Mr. Du said that the website was updated with illustrations

10 minutes to understand bim+gis fusion, common BIM data formats and characteristics

粒子滤波 PF——在机动目标跟踪中的应用(粒子滤波VS扩展卡尔曼滤波)

Don't remove custom line breaks on reformat

面试高频 | 你追我赶的Flink双流join
随机推荐
Sorted out a batch of script standard function modules (version 2021)
[tcapulusdb knowledge base] tcapulusdb doc acceptance - create business introduction
【TcaplusDB知识库】TcaplusDB单据受理-建表审批介绍
[wechat applet] event binding, do you understand?
音视频学习(二)——帧率、码流和分辨率
【leetcode】112. 路径总和 - 113. 路径总和 II
[tcapulusdb knowledge base] tcapulusdb doc acceptance - transaction execution introduction
夏令营来啦!!!冲冲冲
反射修改final
# 粒子滤波 PF——三维匀速运动CV目标跟踪(粒子滤波VS扩展卡尔曼滤波)
Shell script multi process concurrent writing method example (high level cultivation)
5 figures illustrate the container network
Is it safe to buy stocks and open accounts through the QR code of the securities manager? Want to open an account for stock trading
Evaluate:huggingface detailed introduction to the evaluation index module
Database - sequence
/etc/profile、/etc/bashrc、~/. Bashrc differences
手机上怎么开户?在线开户安全么?
为什么图像分割任务中经常用到编码器和解码器结构?
如何配置使用新的单线激光雷达
【TcaplusDB知识库】TcaplusDB单据受理-事务执行介绍