Starting Bamboo kills Confluence

This is quite odd. I installed Bamboo using this guide:

Afterwards, I modified the ports as it asked and started up Bamboo. All was well, then I checked my Confluence and saw it failed to load with this message:

503: Service Temporarily Unavailable

I then noticed that the Confluence java process (tomcat) had been killed. I searched through which files had changed:

[root@swen90013-C bamboo]# find /var/atlassian/application-data/confluence/ -mtime -0.1
[root@swen90013-C bamboo]#
[root@swen90013-C aramk]# find /opt/atlassian/confluence/ -mtime -1
[root@swen90013-C aramk]# find /opt/bamboo/ -type f -mtime -0.1

Unfortunately, the confluence log shows no indication of failure - during the time of the halt there is nothing in atlassian-confluence.log. The same applies to the confluence catalina.out.

So from what I understand, the process was forcefully terminated at some point. The only error in the bamboo logs is this:

2013-04-02 19:54:53,834 WARN [main] [BrokerService] Store limit is 102400 mb, whilst the data directory: /opt/bamboo/jms-store/bamboo/KahaDB only has 789 mb of usable space
2013-04-02 19:54:53,834 ERROR [main] [BrokerService] Temporary Store limit is 51200 mb, whilst the temporary data directory: /opt/bamboo/jms-store/bamboo/tmp_storage only has 789 mb of usable space

If I start confluence, it seems to kill JIRA! And if I start JIRA it kills Bamboo...

Is it the low memory in my VM?

[root@swen90013-C aramk]# free
             total       used       free     shared    buffers     cached
Mem:       1922632    1834332      88300          0      14984      39252
-/+ buffers/cache:    1780096     142536
Swap:      1268728     941300     327428

What's going on??

1 answer

1 accepted

you may well be running out of heap. One solution is to grab all required memory for each java process, do this by setting the Minimum Heap and the Maximum Heap to be the same JAVA_OPTS value in the various files. You will then be unable to launch new processes if your OS has insufficient RAM to run them, rather than they dyning randomly depending on load.


-Xms1024m -Xmx1024m

Thanks Andy. So you suspect it's the RAM? We've got 2GB on our uni VM but can ask for more if needed. We're running like 4 tomcat instances so it's pushing the RAM to the max. Perhaps allocating more swap will help, at least to prevent it from crashing?

Yes, if the OS has swap that will work, but it will run like a dog :) If you are doing a POC , go light, perhaps you can get away with -xms512m -xmx512m, or lower, barely. Use jconsole or jvisualVM to check actual heap usage, you can also tune permgen this way. If you are running on a remote VM, tunnel X with 'ssh -X' to allow jconsole to be executed remotely.

Cheers for the tips. I think we're essentially running out of resources, so I'll look into getting an upgrade. Glad to know it's not a configuration issue :)

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

670 views 21 12
Join discussion

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