Forums

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

OutOfMemory Errors even though memory is available

Filip Polsakiewicz February 10, 2018

Hi all,

I try to run Jira, Confluence, Bitbucket, Crowd and Bamboo on one server which has the following specifications:

- Ubuntu Linux 16.04 LTS

- 16 CPU vCores

- 32 GB RAM

It works ok as long as I only run Jira, Confluence, Bitbucket and Crowd.

As soon as I start Bamboo it can start but I run into Out of memory errors (unable to create native thread) even though there are still about 20GB of free memory.

Google suggested it might have to do with the maximum number of threads. But ulimit says I can spawn 1546667 processes and the current number according to htop is about 1200.

core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 1546667
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 1546667
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

I added the -Xss512m flag to all applications hoping to avoid this problem but it still persists. I also adjusted the Xmm and Xms flags to different values.

Any suggestions what else I can do? The maximum number of users working on the system is about 5 so I think the maschine should be sufficient (esp. as the CPU cores are not showing any notable workload and the memory is not even half way used).

Any help is greatly appreciated.

 

Thanks,

Filip

1 answer

0 votes
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 12, 2018

Hi Filip,

It looks like the number of open files may be set too low - see Bamboo crashes due to OutOfMemoryError unable to create new native thread for this and other possible causes and remedies.

Cheers,

Christian

Premier Support Engineer

Atlassian

Suggest an answer

Log in or Sign up to answer