3 ms·
Every time I hear this conversation play out, the Java folks point out that the GC is highly tunable/pluggable, so you can shift some levers and get lower memor
by weberc2 10y ago
Every time I hear this conversation play out, the Java folks point out that the GC is highly tunable/pluggable, so you can shift some levers and get lower memory consumption in exchange for more frequent collections. I'm not a GC expert, so I'm just repeating what I've heard.
- mcguire 10y agoThis is true. The Java GC (and the whole VM) is one of thr most impressive pieces of software in existence. There are several GCs available, they're tunable, and they support monitoring better than any other I've seen. No GC I know is happy without a heap several times larger than the program's requirements. OTOH, Java programs tend to be built using frameworks that soak up memory like crazy. So there's that.
- FlyingPiranhas 10y agoI believe that Go's GC currently bounds heap memory usage to 2x the actual usage (worst case).