Now I'm no Java expert, far from it, so would appreciate any answers to this. I'm interacting with bunch of CLIs that are either in Java or using the JVM otherwise (Clojure mostly), how much of the startup time for this things can be attributed to the GC? It's mentioned in the article that short-running programs (almost all CLIs I use) could use Epsilon since the heap is cleared on exit anyways. But wondering how muc…
Epsilon: The JDK’s Do-Nothing Garbage Collector
11–20 of 77 posts
Re: Epsilon: The JDK’s Do-Nothing Garbage Collector
#12To address the short-running program issue, can't the regular GCs just not clean up on program exit?
Re: Epsilon: The JDK’s Do-Nothing Garbage Collector
#13To address the short-running program issue, can't the regular GCs just not clean up on program exit?
Re: Epsilon: The JDK’s Do-Nothing Garbage Collector
#14If you want to read more about these new GCs, this is a great post: https://blog.plan99.net/modern-garbage-collection-part-2-1c8...
Re: Epsilon: The JDK’s Do-Nothing Garbage Collector
#15Epsilon tied on speed but lost to Shenandoah on latency because never freeing memory isn't ideal either, even if you never run out of memory.
Re: Epsilon: The JDK’s Do-Nothing Garbage Collector
#16Now I'm no Java expert, far from it, so would appreciate any answers to this. I'm interacting with bunch of CLIs that are either in Java or using the JVM otherwise (Clojure mostly), how much of the startup time for this things can be attributed to the GC? It's mentioned in the article that short-running programs (almost all CLIs I use) could use Epsilon since the heap is cleared on exit anyways. But wondering how muc…
I was especially frustrated by this, because I had spent some time writting a Clojure program that had to be able to cold-start fast. Decompiling the program's JAR and pruning out unnecessary classes gave a considerable speed-up, but it was not enough.
Re: Epsilon: The JDK’s Do-Nothing Garbage Collector
#17Re: Epsilon: The JDK’s Do-Nothing Garbage Collector
#18To address the short-running program issue, can't the regular GCs just not clean up on program exit?
Re: Epsilon: The JDK’s Do-Nothing Garbage Collector
#19Now I'm no Java expert, far from it, so would appreciate any answers to this. I'm interacting with bunch of CLIs that are either in Java or using the JVM otherwise (Clojure mostly), how much of the startup time for this things can be attributed to the GC? It's mentioned in the article that short-running programs (almost all CLIs I use) could use Epsilon since the heap is cleared on exit anyways. But wondering how muc…
I would look into GraalVM native images if you want fast startup.
Re: Epsilon: The JDK’s Do-Nothing Garbage Collector
#20To address the short-running program issue, can't the regular GCs just not clean up on program exit?
It's not a issue? It's one of the cases where it does make sense to use Epsilon as the heap is cleared anyway on program exit. From the post: > There is a strong temptation to use Epsilon on deployed programs, rather than to confine it to performance tuning work. As a rule, the Java team discourages this use, with two exceptions. Short-running programs, like all programs, invoke the garbage collector at the end of th…