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

Set ulimit on Confluence

After a failed space XML import, I want to increase the open file descriptors limit of the Confluence user, as suggested on this Atlassian KB:

and on this:


However, there are no instructions where exactly to insert the value - "ulimit -n 10000" -  in the file.

Can anyone tell me how it should be done?


1 answer

1 accepted

0 votes
Answer accepted
nic Community Leader Dec 03, 2017

Anywhere you know the line will be executed. is a script that varies by install and settings by site, so they can't just give you a  copy, they are relying on you having a basic understanding of scripts

Most simple place - insert it into the first empty lines at the top of the file.

I've already tried just inserting it in the first empty line, but it didn't work out. That's why I thought it has to be inserted in a specific way.

I tried it again now , and this time, on restarting the service, noticed this message:

"/opt/atlassian/confluence/bin/ line 2: ulimit: open files: cannot modify limit: Operation not permitted"

I searched this message, and it figures I have to set the limit for confluence user also on /etc/security/limits.conf .

I might've tried it before, unless it's said everywhere those settings (on /etc/security/limits.conf) are not for system services. (is that related to the service process gets its limit from its parent process?)

Anyway - thanks - you helped me solve the issue.

It relates to the user the process is running as.

If your application is running as the user "atlassian", then you need to add "atlassian" to /etc/security/limits.conf

Hi @Lars Olav Velle any restarts needed after the changes of /etc/security/limits.conf ?


Thanks in advance!

@Lars Olav Velle @Vlado Nestorovski can you provide an example of the format used in `/etc/security/limits.conf`? It appears you need to specifc a username, maybe an @ sign before it, a type soft/hard and an item plus a value. My guess is something like this:

`atlassian    hard    ulimit    10000`

If you wanted the `atlassian` user to set ulimit to `10000`

Suggest an answer

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

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

3,901 views 15 38
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