Error Codes Wiki

Linux errno 12 (ENOMEM) — Out of Memory

Criticalerrno

Overview

Linux errno 12 (ENOMEM) means the system or process has run out of available memory.

Key Details

  • ENOMEM — cannot allocate memory
  • Can trigger the OOM (Out of Memory) killer
  • Process may be killed by kernel to free memory
  • Check /proc/meminfo for memory state

Common Causes

  • Process memory leak consuming all RAM
  • Insufficient physical RAM for workload
  • Memory overcommit settings too aggressive
  • Kernel cannot allocate memory for system operations

Steps

  1. 1Check memory usage: free -h and top
  2. 2Identify memory-hungry processes in top/htop
  3. 3Add swap space: fallocate -l 4G /swapfile
  4. 4Adjust vm.overcommit_memory in /etc/sysctl.conf

Tags

linuxerrnoerrno 12 enomemtroubleshootingfix

More in Errno

Frequently Asked Questions

Kernel process that kills memory-hungry processes when the system runs critically low on RAM.