Forums

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

Bitbucket service fails to start

Maksim Kunin
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!
August 12, 2018

The Bitbucket service fails to start:

os::commit_memory(0x00000000d4cc0000, 724828160, 0) failed; error='Cannot allocate memory' (errno=12)

Native memory allocation (mmap) failed to map 724828160 bytes for committing reserved memory.

I tried to add in /opt/atlassian/bitbucket/5.13.0/bin/set-jmx-opts.sh those options:

 -XX:-UseCompressedOops -XX:InitialHeapSize=266338304 -XX:MaxHeapSize=4261412864

It didn't solve the problem. The host has 4GB RAM.

1 answer

1 accepted

0 votes
Answer accepted
Alexis Robert
Community Champion
August 12, 2018

Hi @Maksim Kunin

 

can you try disabling CompressedOops ? just remove the "-XX:-UseCompressedOops" part of the set-jmx-opts.sh.

Also, your jvm heap size settings seem weird for a server with 4GB RAM. Can you try setting both to 1024m in case the CompressedOops removal is not enough ?

 

Let me know if this helps, 

 

--Alexis

Maksim Kunin
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!
August 13, 2018

Hi Alexis,

Many thanks for you response. The problem is with elasticsearch. I disable it and now the service is working. 

 

Many thanks,

Maksim

Alexis Robert
Community Champion
August 15, 2018

Happy we could help you @Maksim Kunin !

 

Please take a moment to mark our posts as "Accepted" so that other users can find this when they run into a similar issue.

 

Thanks, 

 

--Alexis

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events