ejabberd - Comments for "Ejabberd always connected to mysql (Sleeping)" https://www.ejabberd.im/node/3491 en Ok thanks a lot to both of https://www.ejabberd.im/node/3491#comment-54215 <p>Ok thanks a lot to both of you :)<br /> I assume i have to decrease connection number.</p> Thu, 07 May 2009 07:44:59 +0000 drzoidberg comment 54215 at https://www.ejabberd.im 10 x 4 = 40 https://www.ejabberd.im/node/3491#comment-54213 <p>1 x 4 = 4.<br /> Why do not you change the 10 to 1 or 2 or ...?</p> Wed, 06 May 2009 22:50:51 +0000 breakevilaxis comment 54213 at https://www.ejabberd.im Not configurable https://www.ejabberd.im/node/3491#comment-54212 <div class="quote-msg"> <div class="quote-author"><em>drzoidberg</em> wrote:</div> <p>i can see that i have 40 sleeping mysql connections. 10 for each server.</p></div> <p>Right, ejabberd opens the 10 connections when it is started, and the connections are never closed. The ejabberd Guide mentions it:</p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>By default ejabberd opens 10 connections to the database for each virtual host. </p></div> <div class="quote-msg"> <div class="quote-author"><em>drzoidberg</em> wrote:</div> <p>Is there a way to tell ejabberd no to use those connections when it s unnecessary ?<br /> So that mysql can free those connections. </p></div> <p>Not possible: I don't see any option for that, and I am not aware of any patch that implements that.</p> Wed, 06 May 2009 19:33:00 +0000 mfoss comment 54212 at https://www.ejabberd.im