Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's disrespectful to take 4GB if you don't need it. This should never be the default...


It's the default because in any garbage collected language you can delay taking out the trash as long as you want... as long as you have memory. The most efficient thing to do is never run the collector at all.

JS does frequent GC cycles because its unacceptable to let a webpage eat all the ram. Not sure why Go collects so frequently. Java's default IMO is the most reasonable of the three. If you have a server with 4gb the best choice is to let the garbage collector use all of it


Read the comment again:

> If you tell your Java application server "here you have 4GB, use it as you wish"




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: