RFR: 8292083: Detected container memory limit may exceed physical machine memory [v8]
Jonathan Dowland
jdowland at openjdk.org
Tue Aug 23 08:32:31 UTC 2022
On Mon, 22 Aug 2022 16:04:52 GMT, Jonathan Dowland <jdowland at openjdk.org> wrote:
>> test/hotspot/jtreg/containers/docker/TestMemoryAwareness.java line 112:
>>
>>> 110: // first run: establish physical memory in test environment and derive
>>> 111: // a bad value one power of ten larger
>>> 112: String goodMem = Common.run(opts).firstMatch("total physical memory: (\\d+)", 1);
>>
>> `goodMem` will return `null` if there is no match. Could you please handle this and bail out the test with some meaningful message. Right now this fails the test run on unpatched with `--memory null0` being an illegal value when passed to the container engine.
>
> Thanks, resolved in 4984ddd9c9f68c00aaa8935769e9ac925690c2fb.
I've added an assert in 4984ddd9c9f to resolve this. Thanks!
-------------
PR: https://git.openjdk.org/jdk/pull/9880
More information about the hotspot-runtime-dev
mailing list