RFR: 8292541: [Metrics] Reported memory limit may exceed physical machine memory [v3]
Jonathan Dowland
jdowland at openjdk.org
Thu Aug 25 15:35:29 UTC 2022
On Thu, 25 Aug 2022 12:35:13 GMT, Jonathan Dowland <jdowland at openjdk.org> wrote:
>> When the container memory exceeds the physical host's memory, the Java metrics reporting is wrong.
>>
>> https://bugs.openjdk.org/browse/JDK-8292541
>>
>> This is the equivalent core-libs fix for Hotspot's [JDK-8292083](https://bugs.openjdk.org/browse/JDK-8292083)
>> (https://github.com/openjdk/jdk/pull/9880)
>
> Jonathan Dowland has updated the pull request incrementally with one additional commit since the last revision:
>
> Address nit
>
> Thanks Thomas Stuefe
test/hotspot/jtreg/containers/docker/TestMemoryAwareness.java line 53:
> 51: DockerRunOptions opts = Common.newOpts(imageName);
> 52: String goodMem = Common.run(opts).firstMatch("total physical memory: (\\d+)", 1);
> 53: assertNotNull(goodMem, "no match for 'total physical memory' in trace output");
I've just realised this will not match (yet) since the relevant log line is added in #9880 .
-------------
PR: https://git.openjdk.org/jdk/pull/10017
More information about the core-libs-dev
mailing list