[jdk8u-dev] RFR: 8292541: [Metrics] Reported memory limit may exceed physical machine memory
Jonathan Dowland
jdowland at openjdk.org
Fri Jan 13 14:53:21 UTC 2023
On Fri, 13 Jan 2023 14:48:38 GMT, Jonathan Dowland <jdowland at openjdk.org> wrote:
>> Note that with an instrumented JDK I was able to observe the following (when the test fails):
>>
>>
>> systemMemory == -1308622848
>> containerMemory == 104857600
>> Metrics.getMemoryLimit() == -1
>>
>>
>> I.e. we were getting a negative host memory value.
>
> Thanks for working on this! I guess without the explicit intermediate variables some kind of integer promotion/demotion is going on and there's an overflow on 32 bit?
>
> I'll raise the upstream bug, thanks!
I wonder what the behaviour is on ARM32. I don't know whether we are testing that, whether it's explicitly supported for jdk8u or not, or by who. I've been wondering that since the reports of problems with non-static member initialization in another backport.
-------------
PR: https://git.openjdk.org/jdk8u-dev/pull/220
More information about the jdk8u-dev
mailing list