Out of Memory Error in Bamboo while building Grails project

I'm facing a out of memory error in Bamboo while building a Grails project.

In Bamboo console, I got a error log  as below.

・・・

build	02-Dec-2016 16:24:24	# There is insufficient memory for the Java Runtime Environment to continue.
build	02-Dec-2016 16:24:24	# Native memory allocation (mmap) failed to map 152043520 bytes for committing reserved memory.
build	02-Dec-2016 16:24:24	# An error report file with more information is saved as:
build	02-Dec-2016 16:24:24	# /opt/atlassian/bamboo/xml-data/build-dir/SPF-BUILD-JOB1/hs_err_pid11469.log

・・・・

/opt/atlassian/bamboo/xml-data/build-dir/SPF-BUILD-JOB1/hs_err_pid11469.log 

is as below.

# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 251658240 bytes for committing reserved memory.
# Possible reasons:
# The system is out of physical RAM or swap space
# In 32 bit mode, the process size limit was hit

・・・

 

I setted Grails_OPT="-xmx1024M" to Grails task' enviroment variable in Bamboo,

but Same error occured.

What should I do?

 

1 answer

0 vote

Hello Keizo,

Could you please rewrite the environment variable as per following and give another try:

GRAILS_OPTS="-Xmx1024m -server"

information Grails version must be 1.2.2 or above.

Also, how much memory have you allocated to Bamboo?

Kind regards,
Rafael P. Sperafico

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,096 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot