Support Shenandoah GC / jdk 25 #8839
Replies: 2 comments 3 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.
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=generational
in 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