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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

JIRA/Confluence ran out of the Memory, how can I release memory

Hi All

My JIRA/Confluence System almost run out of my Memory, how can I release memory or how can I reduce using Memory?


Environment is On-Premium 

1. 3 container structure

2. JIRA + Confluence + Mysql 


PS: The system uses very low memory when the VM restarts.



2 answers

1 accepted

2 votes
Answer accepted
Brant Schroeder Community Leader Dec 04, 2022

@willie Welcome to the Atlassian community

You should review your hardware requirements here for Confluence and Jira as you might need additional resources.  Remember that additional apps installed on each instance will increase the amount of resources needed.

After you have confirmed that you have the proper amount of resources for the size of your instances you should start with tuning your instance (Jira and Confluence) to improve performance.

Hi Brant 

Thanks for your response, In fact, we use the on-premise server for a long time, but unfortunately, the data increase very quickly for the last few years, so right now the VM server has a Memory issue, hopefully, you maybe can give us some user guidelines by GUI setup(if it has, it will be easy for me) for release or reduce memory usage.  

Thanks again, Willie

PS: System status 


32G Memory

Brant Schroeder Community Leader Dec 07, 2022

@willie My guess is that you will need to increase the memory.  What are your instances sizes? (Jira and Confluence)  


  • How many users?
  • How many concurrent users?
  • How many issues?
  • How many comments?
  • How many custom fields?


  • How many users?
  • How many concurrent users?
  • How many spaces?
  • How many pages?

To increase the memory is the only way?  or Could I modify JIRA/Confluence Memory setting with file for reducing memory?


  • How many users?     209 active
  • How many concurrent users?
  • How many issues?   
  • How many comments?
  • How many custom fields?



  • How many users?     209 active
  • How many concurrent users?
  • How many spaces?
  • How many pages?









Tom Lister Community Leader Dec 08, 2022

Hi @willie 

Are you actually getting out of memory errors thrown by the apps? Your stats look healthy.

Or are you looking at the overall usage on the server? 
With Jira, confluence and the db on  one machine you will have high usage. You have 3 atlassian Have processes , the DB and the o/s and only 32gb overall.

The JVM params you have shared are reasonable

In the Jira system info page you can confirm whether they have been applied and see the current usage.

The garbage collection in the JVM will claim back unused memory. Are you seeing spikes? Try to identify what the apps are doing at those times. Backups to XML are quite heavy and not viable once a system gets very large.

Brant Schroeder Community Leader Dec 08, 2022

@willie It looks like the heaps are fairly healthy.  You have to understand that when you allocate memory to Java it will take all of it on the system and will end up managing it.    Just because a lot of the memory is being used does not mean that the system is not running well.  Are you having application degradation?  Is the server crashing? 

@Brant Schroeder @Tom Lister 
The server has to restart 1 or 2 times per month because of the server crashing(Jira/Confluence login page can't open, and sometimes I need to restart VM by force). Depending on your suggestion, the only way should be to increase VM Memory, isn't it? 



1. Jira + Confluence data more than 1T right now.

2. How much memory do I need to increase for 1T Data?

3. If data raise to 2T, how much memory will be used? (How much memory for 3T or 4T)

4. If I ignore the Backups plan from automation to manual control, it is a good way to release/reduce memory.

System Monitor (CPU/Memory usage rate for 2 weeks)


Thanks very much again for your full support 


Tom Lister Community Leader Dec 09, 2022

Hi @willie 

I agree with @Brant Schroeder 

Your memory settings for the sizes of your apps are reasonable. The volume of data in the DB won't affect memory unless you run some app that tries to load large chunks of it. That is why backups can be very resource heavy.

The actual used memory is usually a bit larger than the limits set in the JVM startup params. These params relate to the 'heap' and there is more going on under the hood than that.

The combination of Jira, Confluence/Synchrony and the DB are using the available server memory. So your options are to increase the memory on this server - 48Gb, 64Gb - and see if that gives you a higher ceiling. The JVM usage should be constrained by their memory params so not rise to occupy available space.. The DB usage I can't comment on.

You can try spreading the apps over more that one machine. Maybe start with putting the database on a separate server.

These links are interesting.

1 vote
Tom Lister Community Leader Dec 05, 2022

Hi @willie 


It looks like you are running Jira, Confluence (probably with separate Synchrony process) and the MySQL db on the same machine.

None of the process seem to be using excessive memory. Jira and Confluence allocation will be limited to the  -Xmx setting on the JVM at startup.

Your server is probably no longer sufficient to host all these services on one machine.

Hi Tom

Thanks very much for your response, Could you teach me how to allocate Jira and Confluence Min/Max memory with my server hardware(Physical MM 32G )






PS: System environment

1. Azure VM(4CPU/32G)

2. 4 containers in 1 VM (jira+confluence+mysql+nginx)




Like willie likes this

Suggest an answer

Log in or Sign up to answer