OOM on gradle tests


#1

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


#2

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?


#3

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"'

#4

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.


#5

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