Support Shenandoah GC / jdk 25 #8839
Replies: 3 comments 4 replies
-
|
You'll need a JDK with Shenandoa enabled. You can configure that on CLI using |
Beta Was this translation helpful? Give feedback.
-
Oracle doesn't ship the Shenandoah GC so it could be that it isn't in the JDK you are running NB on. (all other distributions should have it since it is the default build option I believe) So if the GC isn't found check what JDK you are running NB on. The JDK+NB 27 packages bundle zulu 24 for example which does have all GCs too. (And yes as Matthias mentioned above, G1 can return memory to the system too) |
Beta Was this translation helpful? Give feedback.
-
|
Well actually with recent JDK-s if you are a bit low on memory G1 is the best choice. Shenondoah and ZGC has more focus on low latency GC, which is not really that appealing for an IDE use-case. That also comes more native memory overhead (8-10% of Heap space vs ~2% on G1) Also yes G1 is also capable of give back memory to the OS if there is a memory pressure (or manually enforced full GC). If you are bit low on RAM the best thing would be limit the maximum heap and use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
JDK25 comes with Shenandoah GC feature stabalized.
However using these options :
-J-XX:+UseShenandoahGC -J-XX:ShenandoahGCMode=generationalin the netbeans.conf file results in netbeans not even starting. Is it possible to support this GC ?Use case/motivation
I have read that ShenandoahGC is more liberal in returning memory/RAM to the system. Overtime the VM consumes more RAM/heap-size even though actual usage might fluctuate and might be usually low. However this appears as a high ram usage and appears to affect the overall system performance. Currently the only way out is to restart netbeans as simple GC just frees objects from heap but doesn't reduce heap size.
Related issues
No response
Are you willing to submit a pull request?
No
Beta Was this translation helpful? Give feedback.
All reactions