Re:FF4J – Feature Flags for Java
by seadan83 on Wednesday June 07, 2023 @01:10PM
(#36229797)
Java by default allocates a healthy percentage of available RAM. It releases memory if a large percentage is unused, and it only runs full GC when a large percentage is used. The trick is therefore to decrease the initial max memory. Otherwise you can wind up with 70% usage, a lot of objects that could be GC'd but are not because there is not enough memory pressure to run full GC, and there is not enough unused memory to be able to release RAM back to the OS
[ Parent
| on HN ]
Re:FF4J – Feature Flags for Java
by ye-olde-sysrq on Wednesday June 07, 2023 @01:59PM
(#36230676)
See my reply to the other comment - I specifically refer to off-heap memory, not on-heap/GC-managed memory.