Christian Ammer
Christian Ammer

Reputation: 7542

How to retrieve the memory usage of a Windows container?

Under Linux it's possible to read the control file memory.usage_in_bytes for Control Group v1 or memory.current for Control Group v2. How to get the memory usage of a Windows container?

According to the Windows resource management Kubernetes docs, the Windows concept for the process isolation is about job objects. I found that it's possible to get JOBOBJECT_EXTENDED_LIMIT_INFORMATION information providing PeakJobMemoryUsed. However, it appears querying this information requires elevated rights (because I got Could not get job information: [0x0005] Access is denied.).

Is there any other way to get information about Windows containers memory usage?

Upvotes: 2

Views: 370

Answers (0)

Related Questions