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.

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. 

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.

Was this article helpful?
67 out of 142 found this helpful



Article is closed for comments.