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

Solution Unverified - 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 6

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.