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.

We have a blog post about memory issues related to builds that are using Java

https://circleci.com/blog/how-to-handle-java-oom-errors/

With CircleCI 2.0, you can use the resource_class configuration option to control the available resources for your build containers:

https://circleci.com/docs/2.0/configuration-reference/#resource_class

resource_class must be enabled on your account before you can use it. Submit a support ticket requesting this feature, and we'll enable it for your project. 

Was this article helpful?
3 out of 4 found this helpful

Comments

0 comments

Please sign in to leave a comment.