You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
retrieveLinuxMemoryStats(struct OMRPortLibrary *portLibrary, struct J9MemoryInfo *memInfo) calls retrieveLinuxCgroupMemoryStats(portLibrary, &cgroupMemInfo); to determine the memory limits set by containers.
I have observed that retrieveLinuxCgroupMemoryStats() returns an error code and therefore retrieveLinuxMemoryStats() will only report the memory available on the host.
Additional tracing showed that retrieveLinuxCgroupMemoryStats() is actually able to determine the cgroup memory limits, but it fails when trying to determine the swapiness:
retrieveLinuxMemoryStats(struct OMRPortLibrary *portLibrary, struct J9MemoryInfo *memInfo)
callsretrieveLinuxCgroupMemoryStats(portLibrary, &cgroupMemInfo);
to determine the memory limits set by containers.I have observed that
retrieveLinuxCgroupMemoryStats()
returns an error code and thereforeretrieveLinuxMemoryStats()
will only report the memory available on the host.Additional tracing showed that
retrieveLinuxCgroupMemoryStats()
is actually able to determine the cgroup memory limits, but it fails when trying to determine the swapiness:Maybe the code should not abort immediately and provide whatever partial information was able to gather correctly.
The text was updated successfully, but these errors were encountered: