upvote
Modern JVM's (JDK +10) have runtime detection for whether they're operating in a container environment, and apply sensible defaults based dynamically on resources if so.

Google term: "-XX:+UseContainerSupport"

reply
I just realized the username of the comment I replied to.

The OP undoubtedly knows this, whoops.

reply
I (and presumably some others) didn't. TIL and thx for sharing.

and I also read it not as contradiction but simply as useful additional information.

reply