Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bitbucket pipelines with Gradle - Java heap space error

Guy Bashan December 31, 2020

I keep getting this error when trying to build a project with Bitbucket pipelines and Gradle:

 

* What went wrong:

Execution failed for task ':compileScala'.>

Java heap space

 

The machine is x2 and I do have gradle.properties with increased memory settings:

org.gradle.jvmargs=-Xms512m -Xmx5g -XX:MaxPermSize=1024m -XX:MaxMetaspaceSize=1g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

 

Anything else I am missing?

 

1 answer

0 votes
Harry Scrivens December 31, 2020

Hi @Guy Bashan 

I think i got this nearly everyday you are missing:

org.gradle.jvmargs=-Xms512m -Xmx5g -XX:MaxPermSize=1024m -XX:MaxMetaspaceSize=1g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 Fu=IX ISSUE 

I suggest you email alatisian support by https://support.atlassian.com/contact/#/ 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events