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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.