Not able to execute commands and get the error "Cannot allocate memory"

Solution Verified - Updated -

Issue

  • The system has enough memory, but when trying to execute commands, get the error "Cannot allocate memory".

    -bash-4.1# free -g
                 total       used       free     shared    buffers     cached
    Mem:            94         43         51          0          0          0
    -/+ buffers/cache:         42         51
    Swap:           19          0         19
    
    -bash-4.1# uname -a
    -bash: fork: Cannot allocate memory
    

Environment

  • Red Hat Enterprise Linux (RHEL)

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