RFR: 8217338: [Containers] Improve systemd slice memory limit support
sgehwolf at redhat.com
Fri Mar 22 10:43:47 UTC 2019
Please review this change which improves container detection support
tin the JVM. While docker container detection works quite well the
results for systemd slices with memory limits are mixed and depend on
the Linux kernel version in use. With newer kernel versions becoming
more widely used we should improve JVMs memory limit detection support
as well. This should be entirely backwards compatible as the
hierarchical limit will only be used if everything else is unlimited.
Testing: Manual testing of -XshowSettings and -Xlog:os+container=trace
with systemd slices on affected Linux distributions: Fedora 29,
recent Ubuntu (18-10). Existing docker tests pass. I'm currently also
running this through jdk/submit.
More information about the core-libs-dev