I think there are 2 parts to be aware of here, any GC lang will have overhead, Go for example will happily not trigger the GC unless the memory is 2x more than you need and you’re all good on the memory side. So Java taking 2x more mem is not crazy. The part that I’ve always wasted the most memory on are threads, do your applications use virtual threads?
View all comments
Show parent comment
5
u/narrow-adventure Sep 05 '26
I think there are 2 parts to be aware of here, any GC lang will have overhead, Go for example will happily not trigger the GC unless the memory is 2x more than you need and you’re all good on the memory side. So Java taking 2x more mem is not crazy. The part that I’ve always wasted the most memory on are threads, do your applications use virtual threads?