How to check memory utilization of a Container?

Solution Verified - Updated -

Issue

  • How to check memory utilization of a Container?
  • We have memory limits set to 512MiB, however container shows more memory available in free 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content