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

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

Avatar

1 badge earned

Collect

Participate in fun challenges

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

Challenges
Coins

Gift kudos to your peers

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

Recognition
Ribbon

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!

Leaderboard

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
4,458,124
Community Members
 
Community Events
176
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.

 

image.png

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 

4 CUP

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)  

Jira

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

Confluence

  • 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 Setenv.sh file for reducing memory?

Jira 

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

image.png

Confluence

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

 

image.png

 

PS: 

Confluence 

image.png

JIRA

image.png

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? 

 

PS: 

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)

image.png

Thanks very much again for your full support 

Willie

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.

https://confluence.atlassian.com/jirakb/how-to-use-java-native-memory-tracking-nmt-to-obtain-jvm-memory-usage-details-961252427.html

https://stackoverflow.com/questions/21272877/understanding-jvm-memory-allocation-and-java-out-of-memory-heap-space

https://developers.redhat.com/articles/2021/09/09/how-jvm-uses-and-allocates-memory#

1 vote
Tom Lister Community Leader Dec 05, 2022

Hi @willie 

Welcome

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 )

 

JIRA

image.png

Confluence

image.png

PS: System environment

1. Azure VM(4CPU/32G)

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

 

Thanks,

Willie 

Like willie likes this

Suggest an answer

Log in or Sign up to answer