How to check memory utilization of a Container?
Issue
- How to check memory utilization of a Container?
- We have
memory
limits set to512MiB
, however container shows more memory available infree
command output.
# oc describe po rhel7-sl365
Containers:
...
Limits:
cpu: 8
memory: 8G
Requests:
cpu: 2
memory: 8G
$ oc exec rhel7-sl365 free
total used free shared buff/cache available
Mem: 32931180 5842580 22874396 38092 4214204 26486720
Swap: 0
Environment
- Openshift Container Platform 3
- Red Hat Enterprise Linux (RHEL) 7
- RHEL Atomic
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.