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"
I just realized the username of the comment I replied to.
The OP undoubtedly knows this, whoops.
I just realized the username of the comment I replied to.
The OP undoubtedly knows this, whoops.