当前位置:网站首页>Talk about your GC tuning ideas?
Talk about your GC tuning ideas?
2022-04-21 10:28:00 【It Maple fighter】
Talk about your GC Tuning ideas ?
I find , At present, a lot of external data on G1 Most of the introductions still stay in JDK 7 Or earlier implementations , Many conclusions already have large deviations , Even some of the past GC Option is no longer recommended . therefore , Today I will choose the new version JDK Default in G1 GC Explain in detail as a key point , And I will from the perspective of tuning practice , Analyze typical scenarios and tuning ideas . Now let's update this knowledge .
My question for you today is , Talk about your GC Tuning ideas ?
Typical answer
- When it comes to tuning , This must be for a specific scenario 、 Something for a specific purpose , about GC For tuning , First, you need to know what the tuning goal is ? From a performance point of view , It usually focuses on three aspects , Memory footprint (footprint)、 Time delay (latency) And throughput (throughput), In most cases, tuning will focus on one or both of these goals , There are few situations where three different perspectives can be taken into account . Of course , In addition to the usual three aspects above , Other things may need to be considered as well GC Related scenes , for example ,OOM It may also be related to unreasonable GC Related parameters related to ; perhaps , Application startup speed requirements ,GC It will also be a consideration
- The basic tuning ideas can be summarized as :
- Understand application requirements and problems , Set tuning goals . hypothesis , We developed an application service , But I find that occasionally there will be performance jitter , There was a long service pause . Evaluate the user's acceptable response time and business volume , Simplify the goal to , hope GC Try to limit the pause to 200ms within , And ensure a certain standard of throughput
- master JVM and GC The state of , Positioning specific issues , I'm sure there are GC The need for tuning . There are many ways , such as , adopt jstat Wait for tools to check GC And so on , Can be opened GC journal , Or use the diagnostic tools provided by the operating system . for example , By tracking GC journal , You can find out if GC A long pause occurred at a specific time , This leads to untimely application response
- There's a need to think about , Select the GC Whether the type conforms to our application characteristics , If it is , What are the specific problems , yes Minor GC Too long , still Mixed GC When there is an abnormal pause ; If not , Consider what type to switch to , Such as CMS and G1 Are more focused on low latency GC Options
- Through the analysis to determine the specific adjustment parameters or hardware and software configuration
- Verify that the tuning objectives are met , If you get there , That is, you can consider ending the tuning ; otherwise , Repeat the analysis 、 adjustment 、 Verify the process
Test point analysis
- Today's expedition GC The tuning problem is JVM A fundamental aspect of tuning , quite a lot JVM Tuning requirements , Will eventually be implemented in GC On or related to tuning , What I offer is a common idea :
- Really quickly locate and solve specific problems , Still need to be right JVM and GC Mastery of knowledge , And the summary of actual tuning experience , Sometimes it's even intuitive judgment from experience
- The interviewer may continue to ask real questions about the project , If you can understand 、 Briefly introduce its context , Then describe the diagnosis idea and tuning practice process , It will be a good bonus
版权声明
本文为[It Maple fighter]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204211023025545.html
边栏推荐
猜你喜欢
![[pytorch] Monai vit network graphic analysis](/img/2d/7d81bb8281dec7e66c7420b18fb4b6.png)
[pytorch] Monai vit network graphic analysis

趣丸集团招股书“失效”,旗下TT语音已下架,如何实现稳定增长?

Canoe: what is the vector tool platform

Moore thread cooperates with ampere computing

英伟达、万向、风语筑、追梦者基金……大咖漫谈“元宇宙与产业新机遇”丨2022元宇宙云峰会...

【并发编程043】CAS存在的问题,ABA问题,如何解决的?

C#入门-利用正则表达式校验身份证号

网站被挂博彩暗链

torch.autograd.Function 自定义

数字经济-新经济指数(2017-2022)&31省数字经济测算(2013-2020)两大维度指标
随机推荐
看完这篇 教你玩转渗透测试靶机vulnhub——DC9
【软件测试系列九】《压力测试申请需提供事项说明》
运行npm install命令的时候会发生什么?
torch.autograd.Function 自定义
How to read a source code?
ConvNeXt
L1-048 矩阵A乘以B (15 分)
ant a-table 表格数据同步
微软更新Android/iOS版验证器应用 支持生成更安全的强密码
24 pictures to conquer border image
Usage of SAP ABAP for all entries
Construction of mobile communication platform (voice visual screen, sending and receiving SMS)
Impact of AOT and single file release on program performance
openCV——轮廓检测
Canoe: what is the vector tool platform
MKL and vs2019 configuration method
TensorflowEager的查看关闭开启
大力飞砖之DFS(树的创建)
计量模型、实证stata代码合集,附顶刊示例
L1-052 2018我们要赢 (5 分)