Exit Code 137 - Out of Memory

Exit Code 137 - Out of memory

This is a Linux error code which you may see on CircleCI when your container runs out of memory. Containers are given 4GB of RAM by default. If your build process consumes all of the container memory, your build will fail.

With the Performance Plan, you can use the resource_class configuration option to control the available resources for your build containers. 

Sometimes, tools that automatically spawn workers, processes, or threads based on CPU count can inadvertently cause memory issues on CircleCI, and require manual config when running in the CI environment. Read more about how to manually limit dynamically spawned processes here.

Alternate Memory Issue Causes

For memory issues related to builds that are using Java, please see this blog post.

If your jobs are using Android, please reference our FAQ on Common Android Memory Issues for tips on limiting memory usage. 

Was this article helpful?
86 out of 200 found this helpful

Comments

0 comments

Article is closed for comments.