Comments (3)
有几点建议:
为什么会用到这个特性,是因为O JDK 持有内存不释放的问题,进程占用过多,以前ALi JDK里也有这个特性,个人觉得触发的最佳时机
- 急需要释放出更多的系统内存,比如系统内存占用达到了 80%
2.在每天负载最低时,比如凌晨,也就是可以定时指定触发 ,写cron表达式
以前是自己写了个脚本,用来检测系统内存,如果达到80%,会把JAVA进程强制主动触发一次FULLGC,每天早上6点也会定时强制触发一次,不知能否把这种触发时机 用启动参数实现一下呢?
from tencentkona-11.
感谢您的建议!
之前主要考虑到-XX:PeriodicGCInterval -XX:ForcePeriodicGCInterval 确实可以被一些强制触发Full GC的脚本替代,因此没有急着把KonaJDK8的这些功能迁移到JDK11上面来,并且KonaJDK11也移植了"JEP 346: Promptly Return Unused Committed Memory from G1", 使用更小代价的concurrent gc来回收内存,后面我们会考虑将这两个参数以及对于其他GC的支持都移植到KonaJDK11上面来
至于系统内存(RSS)达到了80%触发Full GC的话,在JVM进程内部可能需要额外的定时检测手段才行,这个我们也会考虑下在JVM内部实现是否合适,如果合适的话,后续也会考虑支持下这个机制
如果只是堆内存占用到了80%触发内存回收的话,像是G1的话,比如您可以设置InitiatingHeapOccupancyPercent为一个合适的值,并且设置-Xms是一个小于-Xmx的值,根据"JEP 346"那么整堆超过一定的IHOP比例就会触发内存回收,当然JEP346的使用concurrent gc来归还内存的效率并没有Full GC的那么高
from tencentkona-11.
Related Issues (20)
- cannot load jars of spring-* under lib/ dir HOT 3
- mac m1 arm 的呢? HOT 2
- Kona Fiber没有包含在开源里面吗? HOT 1
- Pushed to the SDKMan? HOT 2
- Vector API document HOT 1
- 不知有没有可以主动触发把Java Heap内存释放归还给系统内存的功能 HOT 7
- 如何基于该版本jdk实现springboot应用的APPCDS HOT 2
- Should update the supported platforms in README HOT 1
- 如何方便地调试虚拟线程? HOT 1
- JEP346-立即从 G1 返回未使用的已提交内存功能咨询 HOT 3
- 请问下jdk都是gpl,我要是用着商用得话,需要把我得jar/war都给客户不 HOT 1
- 是否支持 native方法 调度
- 无法开启ZGC? HOT 4
- Is there a windows/mac build? HOT 2
- keytool不支持sm2算法吗? HOT 5
- Is there a clear support time for kona 11? HOT 2
- Ambiguous file name HOT 2
- 软件开源-配套文档的问题 HOT 2
- 开启调试模式的时候,监听的ip不对 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tencentkona-11.