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.
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.