<div dir="auto">Try to map each connection to a process and then check which process has extra connections and what type of process that is. It may shed some light on this.<div dir="auto"><br></div><div dir="auto">-ovidiu</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Jul 13, 2017 5:17 PM, "Alex Balashov" <<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
Sorry for the delay in following up on this.<br>
<br>
On Tue, Jul 11, 2017 at 09:20:23AM +0200, Daniel-Constantin Mierla wrote:<br>
<br>
> There are some rpc commands that open database connection, do the<br>
> operation, and then close it. Normally, it still should reuse an<br>
> existing connection, as the "open connection" should search for existing<br>
> one first.<br>
<br>
I do not think I am using any such RPC commands, however. I have a<br>
number of RPC commands that I run for routine monitoring and stats<br>
collection, but they all relate to dialogs, and I use runtime<br>
memory-only backing for that.<br>
<br>
> Can you see if all the connections are in open state or some are pending<br>
> close? Is the number of connections stable or fluctuates over the time?<br>
<br>
It appears to be a stable number and they are all established.<br>
<br>
> From your summary, I noticed that the tcp workers (which handle also<br>
> http) had two db connections, not sure it was only because of what you<br>
> selected to put in the mail or that's the rule.<br>
<br>
It does appear to be the rule, from a cursory examination.<br>
<br>
So, what I guess I am trying to figure out is whether this is normal,<br>
and what exactly is the driver of the greater-than-expected number of<br>
connections.<br>
<br>
-- Alex<br>
<br>
--<br>
Alex Balashov | Principal | Evariste Systems LLC<br>
<br>
Tel: <a href="tel:%2B1-706-510-6800" value="+17065106800">+1-706-510-6800</a> / <a href="tel:%2B1-800-250-5920" value="+18002505920">+1-800-250-5920</a> (toll-free)<br>
Web: <a href="http://www.evaristesys.com/" rel="noreferrer" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" rel="noreferrer" target="_blank">http://www.csrpswitch.com/</a><br>
<br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</blockquote></div></div>