logoalt Hacker News

re-thctoday at 2:08 PM1 replyview on HN

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.


Replies

gf000today at 3:10 PM

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).