Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket pipelines with Gradle - Java heap space error

Guy Bashan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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