3 ms·
For me main reason to prefer Go is its fantastic start time and low memory consumption. Last time I tried to build a lean Java project, I end up with 300MB hea
by vbezhenar 4y ago
For me main reason to prefer Go is its fantastic start time and low memory consumption.
Last time I tried to build a lean Java project, I end up with 300MB heap. With small Go service, it can easily live on 30MB container.
- deleted 4y ago[deleted]
- ysleepy 4y agoIt's true, per default the jvm takes a bunch of memory. I have been successful with running complex java apps in very memory constrained environments though, choosing frameworks and the right -xmx value is usually enough, but yeah, the 30mb res region is not javas sweetspot, but 100mb res mem allowes leveraging much of the java ecosystem.