OOM on gradle tests

Hi,
I’m getting OOM (code 137) and not getting memory-usage.txt file.

Your question is probably rather too brief to be answered. Are you using 1.0 or 2.0? Are you using the Docker or Machine executor? Are you using a free or paid account?

I’m using 2.0 with docker on paid account
version: 2.0
jobs:
build:
docker:
# specify the version you desire here
- image: SOME IMAGE

working_directory: ~/dir

environment:
  JVM_OPTS: -Xmx3072m
  GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'

I advise looking through the Java environment variables & how they related:

If you’re still seeing issues you might just need more than 4GB of RAM.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.