<div dir="ltr"><div>Thanks for your response,</div><div><br></div><div><span style="white-space:pre"> </span>I agree that the async avp_db_query creates dynamics mysql connection but the connections goes in sleep mode and they never closed until opensips restart, I am sending the mariadb connection initially when starts opensips and after calls(we are using different db user to identify each of them). We are making 1000 calls with 100 cps.</div><div><br></div><div>Please check mysql process list output in below linkĀ </div><div><a href="https://pastebin.com/Uk1DeYR0">https://pastebin.com/Uk1DeYR0</a><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 26, 2017 at 10:23 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<tt>Hello Patel,<br>
<br>
Yes, the avopos module (while using async db queries from script)
is the one dynamically creating mysql connections. Are all the
created connection under usage ?<br>
<br>
Best regards,<br>
</tt>
<pre class="gmail-m_-6452636843846335281moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="gmail-m_-6452636843846335281moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a>
</pre><div><div class="gmail-h5">
<div class="gmail-m_-6452636843846335281moz-cite-prefix">On 09/25/2017 05:37 PM, Dipteshkumar
Patel wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="gmail-h5">
<div dir="ltr">
<div>Hello Sir,</div>
<div><br>
</div>
<div>I am using opensips version 2.3.1 and
mariadb-server-5.5.52-1</div>
<div><br>
</div>
<div>In which I have configured dispatcher, dialog, avpops ,
rtpproxy and permissions module to use database connection.</div>
<div>Opensips has 16 children.</div>
<div><br>
</div>
<div>And Yes, I am using async db queries in avpops.</div>
<div><br>
</div>
<div>I have noticed that as and when I increase CPS the idle DB
connections are increasing mainly for avpops module. And those
connections are not getting disconnected until restart
opensips.</div>
<div><br>
</div>
<div>Please help me out to resolve this as at some point it
leads to Too Many Connections.</div>
<div><br>
</div>
<div>Looking forward for your kind help.</div>
<div><br>
</div>
<div>Thanks in advance.</div>
</div>
<br>
<fieldset class="gmail-m_-6452636843846335281mimeAttachmentHeader"></fieldset>
<br>
</div></div><pre>______________________________<wbr>_________________
Users mailing list
<a class="gmail-m_-6452636843846335281moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="gmail-m_-6452636843846335281moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote></div><br></div></div>