Re:A categorized list of all Java and JVM features since JDK...
by edp on Thursday April 01, 2021 @01:17PM
(#26663409)
Starting with OpenJDK 11 (and I think available in OpenJDK8 with an optional flag), the JVM will use the memory constraints of the container, so no more -Xmx flags and so on if you are running the JVM in a container environment.
Re:A categorized list of all Java and JVM features since JDK...
by oftenwrong on Thursday April 01, 2021 @01:54PM
(#26663885)
No flag necessary for latest versions of OpenJDK 8, either.
Like, people always say, "Well that just means they didn't know what they were doing with the JVM"—yes, and it's been a problem for two decades and is about as likely to go away as buffer overflows in C.
Honestly the thing I like about Go, Rust, C++ the most is the resultant binary just runs in userspace, and you can set the constraints there. Even Python scripts don't have to muck with the JVM.
FactoryFactoryFactoryFactory code is the least of Java's issues.