Lowering MySQL threads for confluence

I'm currently testing confluence as an internal documentation store and intranet for a very small company. In my testing I've found that Confluence seems to hold several 10+ mysql threads open at all time. I realize this is probably for performance, but in our case it's unlikely there will ever be more than two people on the site at a time, and the total number of employees can be counted on one hand.

*EDIT

Is there anyway to tune the number of connections used by confluence like you can in JIRA?

https://confluence.atlassian.com/display/JIRA051/Tuning+Database+Connections

1 answer

Hi Jonathon!

Maybe you can set the number of threads on MySQL itself.

Try changing some parameters on my.cnf, like:

thread_cache_size = 0
wait_timeout = 60
interactive_timeout = 60
max_delayed_threads = 0

This will may help with the idle or unused connections with MySQL.

Hope it helps!

Unfortunately these settings did not change the number of connections remaining open to mysql from Confluence. They also resulted in an overall performance loss (thread_cache_size=0 I assume).

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,695 views 26 10
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