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
- 1Check memory usage: free -h and top
- 2Identify memory-hungry processes in top/htop
- 3Add swap space: fallocate -l 4G /swapfile
- 4Adjust vm.overcommit_memory in /etc/sysctl.conf
Tags
linuxerrnoerrno 12 enomemtroubleshootingfix
More in Errno
linux-errno-1-epermLinux errno 1 (EPERM) — Operation Not Permitted
Warninglinux-errno-2-enoentLinux errno 2 (ENOENT) — No Such File or Directory
Warninglinux-errno-5-eioLinux errno 5 (EIO) — Input/Output Error
Errorlinux-errno-11-eagainLinux errno 11 (EAGAIN) — Resource Temporarily Unavailable
Informationallinux-errno-13-eaccesLinux errno 13 (EACCES) — Permission Denied
Warninglinux-errno-22-einvalLinux errno 22 (EINVAL) — Invalid Argument
WarningFrequently Asked Questions
Kernel process that kills memory-hungry processes when the system runs critically low on RAM.