Re:Sub-10 ms Latency in Java: Concurrent GC with Green Threads
by frant-hartm on Wednesday August 05, 2020 @09:12AM
(#24060395)
I want memory allocation to run in constant time, so I can achieve low latency. That's the point of concurrent GCs - they run in the background to free up memory.
[ Parent
| on HN ]
Re:Sub-10 ms Latency in Java: Concurrent GC with Green Threads
by chrisseaton on Wednesday August 05, 2020 @09:30AM
(#24060533)
I know they run in the background... but I don't think they run in the background if there's nothing to do, do they?
Re:Sub-10 ms Latency in Java: Concurrent GC with Green Threads
by imtringued on Wednesday August 05, 2020 @04:43PM
(#24065369)
A JVM with default settings will happily allocate more memory without attempting to even run a single GC cycle until it hits the configured heap size. Once it hits the limit it will try to run the GC.