- Java 11 and 12:New Features
- Mala Gupta
- 151字
- 2021-07-02 12:27:06
The design goals of G1 GC
G1 GC was designed to avoid full GC collections. One of the main design goals of G1 was to add predictability and configurability to the duration and distribution of stop-the-world GC pauses.
For instance, with G1 GC, you can specify that the stop-the-world pauses should not be longer than x ms in a y ms time range. A real example of this is by specifying that a stop-the-world pause with a G1 GC should not be more than 8 milliseconds, every 70 seconds. The G1 GC will do its best to meet this performance goal.
However, there could be a mismatch in how you configure these values and the actual pause times with the G1 GC.
A stop-the-world GC pause refers to a state when JVM applications become unresponsive because GC doesn't allow any changes when it is marking or cleaning up memory.
推薦閱讀
- Python入門很簡單
- Building a RESTful Web Service with Spring
- NLTK基礎教程:用NLTK和Python庫構建機器學習應用
- The React Workshop
- Java程序設計與實踐教程(第2版)
- Kotlin Standard Library Cookbook
- Hands-On GPU:Accelerated Computer Vision with OpenCV and CUDA
- Spring Boot Cookbook
- 劍指大數據:企業級數據倉庫項目實戰(在線教育版)
- Scala編程(第5版)
- Windows Phone 8 Game Development
- 川哥教你Spring Boot 2實戰
- C語言從入門到精通(微視頻精編版)
- 前端Serverless:面向全棧的無服務器架構實戰
- C#教程