20 Temmuz 2022 Çarşamba

Epsilon Garbage Collector - Java 11 İle Geliyor

Giriş
Açıklaması şöyle
Epsilon only allocates memory and does not release it like JVM GC. Using this new garbage collector is really helpful in a test environment as no memory clearance overhead. Therefore, it gives an accurate performance test result. There is a note that Epsilon is good only for test environments because it will lead to OOM (OutOfMemory) in production and crash the Java application.
Açıklaması şöyle
Java 11 introduced a no-operations(No-Op) garbage collector called Epsilon. This is an experimental feature. It is called a No-Op garbage collector because it will allocate memory but will never collect any garbage. We can use it for simulating Out-Of-Memory errors. The following are some of its use cases.

- Performance testing
- Memory pressure testing
- VM interface testing and
- Extremely short-lived jobs
- Last-drop latency and throughput improvements
Örnek
Şöyle yaparız
-XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC



 

Hiç yorum yok:

Yorum Gönder