Linux 137High

Exit Code 137 in Linux: the process was terminated by the system

Exit Code 137 means that the process was forcibly terminated by the SIGKILL signal (9). This is most often related to a lack of RAM (OOM Killer).

Updated at February 12, 2026
10-20 min
Medium
FixPedia Team
Применимо к:UbuntuDebianCentOSDocker

Exit Code 137 means that the process was terminated by the SIGKILL (9) signal. In most cases, this is done by the OOM Killer mechanism when the system runs out of RAM.


Main Causes

  • Insufficient RAM
  • Exceeding memory limit in the Docker container
  • Memory leak in the application
  • Strict cgroup limits

Method 1: Check OOM Killer

Check the system log:

dmesg | grep -i kill

If there is a mention of Out of memory in the output, the process was terminated due to lack of RAM.


Method 2: Increase Memory Limit (Docker)

If the error occurs in a container:

docker run -m 2g your_image

Or in docker-compose:

deploy:
  resources:
    limits:
      memory: 2g

Method 3: Add Swap

Check the current swap:

free -h

If swap is absent, create it:

sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

Method 4: Optimize Application

  • Reduce memory consumption
  • Check for memory leaks
  • Configure JVM/Node.js limits if necessary

Conclusion

Exit Code 137 is almost always related to insufficient memory. Checking logs, increasing Docker limits, and configuring swap help resolve the issue.

F.A.Q.

What does Exit Code 137 mean?
How to fix Exit Code 137 in Docker?
How to know if the process was killed by OOM Killer?
Is Exit Code 137 a critical error?

Hints

Check OOM Killer
Increase Docker memory limit
Add swap
Optimize application
FixPedia

Free encyclopedia for fixing errors. Step-by-step guides for Windows, Linux, macOS and more.

© 2026 FixPedia. All materials are available for free.

Made with for the community