RFR: 8284900: Check InitialHeapSize and container memory limits before startup [v8]

Jie Fu jiefu at openjdk.java.net
Thu Apr 21 11:26:25 UTC 2022


On Thu, 21 Apr 2022 09:57:10 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:

> Perhaps we should generalize this to use `os::physical_memory()` here instead of the Linux-specific `OSContainer` API? `os::physical_memory()` would return the container limit if it detects so.

What will happen with `-Xms7G` on a machine configured with 4G physical memory + 4G swap space?
Does `os::physical_memory()`  return `physical memory + swap space size`?

-------------

PR: https://git.openjdk.java.net/jdk/pull/8256



More information about the hotspot-gc-dev mailing list