3 ms·
JVM uses as much memory as you allow. Use `-Xmx39m` to beat Golang.
by fastbmk 8y ago
JVM uses as much memory as you allow. Use `-Xmx39m` to beat Golang.
- base698 8y agoYeah, but they all seem to need high mem amounts or they OOMException.
- fastbmk 8y agoWell, it may also be a bad code written by amateurs which use memory inefficiently.
- sheeshkebab 8y agoMy guess is that it won’t work with less than 1GB bc of spring boot, hibernate and all the rest of Java enterprise “microservice” goodness.
- boobsbr 8y ago> My guess So you actually haven't tried to run an application with those libraries, and you don't even know what libraries that particular application is using, and here you are speculating about something you don't know and/or understand.
- bloomthrowaway 8y agoI've used Spring and he's probably right :) . But there's better choices these days. Any Spring micro-services out there are probably by a team that knew Spring well and didn't want to learn a more suitable framework
- jackpeterfletch 8y agoWhats different about the equivalent libraries in other languages?
- bloomthrowaway 8y agoSpring is huge... The closest competitor might be Rails
- bloomthrowaway 8y agoIMO almost nobody is writing microservices with spring boot because its so gigantic. Hibernate isn't bad on memory use on its own. There's a raft of more sane choices these days like Play, Dropwizard, Vert.X etc.. They all use far less resources. Spring Boot is huge because it has to support a decade of obsolete junk, its far more than just a REST app framework. Checkout TechEmpower's framework benchmarks https://www.techempower.com/benchmarks/#section=data-r16&hw=ph&test=fortune&l=hr9lz3&d=9 https://www.techempower.com/benchmarks/#section=data-r16&hw=... (I added filters to limit to Java+Go+JS+Python and limited DB to Postgres and Mysql) Java and Golang lead the pack, with JS a distant second and most Python frameworks hanging out near the bottom
- ardfie 8y ago>IMO almost nobody is writing microservices with spring boot because its so gigantic. I've encountered plenty of spring boot microservices in my work and, from what I hear of other companies, it's not particularly rare. Most of the time, if you have a team that's productive in Spring, a manager or lead will be happy to spend some extra memory and get more features shipped.