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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Not able to run more builds.

Server : Aws linux instance with m3.large with 7.5 GB

Error Log:

Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000747660000, 2023358464, 0) failed; error='Cannot allocate memory' (errno=12)
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 2023358464 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /media/build_server/software/bamboo/Bamboo/xml-data/build-dir/GT-AMITESTDEVCI-S2JOB1/hs_err_pid32425.log
Failing task since return code of [/media/build_server/software/maven/apache-maven-3.2.5/bin/mvn --batch-mode clean install -Dgit.branch=0.3.651 -Denv=amitest] was 1 while expected 0
Parsing test results under /media/build_server/software/bamboo/Bamboo/xml-data/build-dir/GT-AMITESTDEVCI-S2JOB1...
Finished task 'Build code' with result: Failed

1 answer

0 votes
Jeremy Owen Atlassian Team Oct 17, 2017

Looks like there's not enough available memory on the build server for Maven to allocate 2GB for it's JVM. 

Here's a few options:

  • Increase the amount of memory available on the build server
  • Reduce the memory footprint of other processes on the system so there's more overhead
  • Reduce the amount of memory allocated to Maven via the MAVEN_OPTS environment variable. e.g.
    • MAVEN_OPTS="-Xms256m -Xmx1024m"
      • Xms = Initial memory allocation
      • Xmx = Maximum memory allocation

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

696 views 1 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you