← Back to context

Comment by re-thc

4 hours ago

Not true. Lots of large Java deployments with millions to billions in cloud spend. The Java part of it isn’t 0.

Memory isn’t free. CPU isn’t free.

And java uses very little CPU compared to most other languages. It's right after manual memory managed languages like C/C++, and is the first managed language according to a paper about how "green" each language is.

But there is a semi-fundamental tradeoff here, you either use more CPU to use less memory or the reverse. Java can be dynamically configured for either end (though defaults to less CPU by not running the GC unnecessarily).