当前位置:网站首页>day4-jvm
day4-jvm
2022-07-24 06:07:00 【lonelyMangoo】
Today's summary
In the morning, I went to the hospital to have a look at my throat , It's four o'clock for a nap in the afternoon , Chat with dad in the evening , I only watched a little all day jvm(76~83).
JVM
GC Differentiation and analysis
G1 When the old generation is insufficient , When the threshold is reached
Concurrent Tags + Mixed collection
If the recycling speed is lower than the speed of garbage generation , At this time, there is only a small pause
Conversely, it degenerates into serial
remark
In the concurrent tagging phase , Processed c after , Someone quoted c.
When the object reference changes , Will add a write barrier .
The writing barrier is c Join a queue and set to gray
After concurrency , Get into remark, Make further judgment .
In order to avoid being disposed of as garbage .
G1 Optimize
● String de duplication
String The bottom layer uses char Array
So add the newly allocated string to a queue , When recycling in the new era , Check whether there is string repetition , If the values are the same , Quote the same char[]
advantage : Save memory
shortcoming : Slightly occupied cpu Memory , The recycling time of the new generation is slightly increased .
Default on
● Concurrent tag class unloading
After concurrent marking , Know which classes are no longer used ,
Conditions : When all classes of a class loader are no longer used , Then unload all the classes it loads .
● Giant object
○ def: Greater than region Half of
○ No copy
○ Priority should be given to recycling .
○ When no one quoted it in the old days , It can be disposed of when it is recycled in the new generation .
● Concurrent marking time adjustment
Dynamically adjust the threshold , Prevent degradation into full gc
reflection
I didn't expect it to be true to fish for three days and dry the net for two days , After three days of study, I began to slack off , I have to go out tomorrow … I hope to study before going out . A company notice passed today , Next, we need to prepare two sides .
边栏推荐
- "Statistical learning methods (2nd Edition)" Li Hang Chapter 16 principal component analysis PCA mind map notes and after-school exercise answers (detailed steps) PCA matrix singular value Chapter 16
- 《剑指Offer》 二维数组的查找 C语言版本
- 使用Qt连接MySql并创建表号、写入数据、删除数据
- Foundation of JUC concurrent programming (1) -- related basic concepts
- PDF Text merge
- Native JS magnifying glass effect
- Qt char型转QString型 16进制与char型 转 16进制整型
- JUC并发编程基础(9)--线程池
- C语言链表(创建、遍历、释放、查找、删除、插入一个节点、排序,逆序)
- [deep learning] teach you to write "handwritten digit recognition neural network" hand in hand, without using any framework, pure numpy
猜你喜欢
随机推荐
Better CV link collection (dynamic update)
【深度学习】手写神经网络模型保存
Openwrt quick configuration Samba
【数据库系统原理】第五章 代数和逻辑查询语言:包、扩展操作符、关系逻辑、关系代数与Datalog
json.dumps()函数解析
Vscode multiline comments always expand automatically
单播、组播、广播、工具开发、QT Udp通讯协议开发简介及开发工具源码
PDF Text merge
用指针访问一维数组
Foundation of JUC concurrent programming (1) -- related basic concepts
[activiti] personal task
解决ModularNotFoundError: No module named “cv2.aruco“
Answers and analysis of some after-school exercises in signals and systems (Wujing)
[activiti] group task
《剑指Offer》 二维数组的查找 C语言版本
AD1256
PDF文本合并
MySQL foundation - constraints
Detailed explanation of KMP code distribution
Chapter 5 neural network


![[MYCAT] MYCAT configuration file](/img/53/63a633d3ae917e3754f9f7f5c6567f.png)



![[MYCAT] related concepts of MYCAT](/img/44/99d413d47828252267b5242c64960b.png)


