DEV Community

Discussion on: Why you do not like Java?

Collapse
 
vepo profile image
Victor Osório

Regarding the Memory Hog...

Ok... you develop C/C++ with Qt! Nice, we have the same background. I developed C for years, start using Java, then starting porting C libraries using JNI.

I think the JVM Memory Management was a nice feature in the past, but Docker killed the necessity for this feature. If we could just delete an object manually will be a great improvement.

Collapse
 
absinthetized profile image
Matteo Nunziati • Edited

When people refer to java as a memory hog, they compare it to other more higher level alternatives then c/c++: Node, Python, Ruby, C# they all consume less memory than java in the same condition. Some do with perf handicaps (Python), still the used ram is way lower.

Also there is a "niche" now days with Go and Rust. Here the memory usage comparison is simply a joke!

About cap'ing memory usage, yes this was a good feature in the 90s but with VMs (way before containers) and a good "single responsibility" approach to ops, java memory cap'ing is obsolete IMHO - also java 8 had some nasty side effects with containerised envs.

Also, why limit max memory but not CPU usage?! you can still put a server on its knees just limiting max RAM! So the feature was nice but also non-complete.

Thread Thread
 
vepo profile image
Victor Osório

Thanks again, I didn't know the meaning of the word hog. 😏 So I had to assume based on Google Translator.