Hacker News new | ask | show | jobs
by vips7L 9 days ago
Isn’t that on by default?
1 comments

Pretty much, yes.
So is there nuance in pretty much? My understanding for a while is that hotspot automatically detected containers.
When container awareness was added into OpenJDK 8, and OpenJDK 10, it was not on by default. Which means that certain specific builds of OpenJDK 8 and 10 do have to have this flag on for them to work on containers properly.

But latest versions of OpenJDK 8 and 10, and all releases after OpenJDK 11, have this flag on by default.

The nuance is: "which specific minor version of JDK 8 / 10 are you running?"

Thanks Bruno, that makes sense. I run 25 or bleeding edge.