We have 200 sessions always established from Confluence to database.
Confluence's max number of connector threads is 150. (Tomcat standalone)
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
As I understood Confluence have internal pool of connections to database.
How to change count of established sessions in this internal pool?
We want minimize them to 150.
Thanks
Hi Aleksandr,
You can do this by editting your <install dir>/confluence.cfg.xml, and change the value on the line:
<property name="hibernate.c3p0.max_size">30</property>
to a value that better suit your needs, after that just restart Confluence and you're good to go.
Kind Regards,
Felipe Alencastro
Thank you for explanation,
I try change and check count of sessions after Confluence restart,
but now we have following values:
1
2
|
<property name="hibernate.c3p0.max_size">150</property> <property name="hibernate.c3p0.min_size">50</property> |
The value 150 is not match with 200 sessions in database.
So I don't see relationship between max_size and count of sessions in database.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I got it, I changed property hibernate.c3p0.min_size to 20 in confluence.cfg.xml:
<property name="hibernate.c3p0.min_size">20</property>
After restart of Confluence I saw 80 number of sessions.
So my resolution: Number of sessions in database calculate by formula hibernate.c3p0.min_size multiply to 4 times.
Thats why when I had c3p0.min_size equal 50 then number of sessions were 200.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for explanation,
I try change and check count of sessions after Confluence restart,
but now we have following values:
<property name="hibernate.c3p0.max_size">150</property> <property name="hibernate.c3p0.min_size">50</property>
The value 150 is not match with 200 sessions in database.
So I don't see relationship between max_size and count of sessions in database.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.