<HTML><BODY><div class="js-helper js-readmsg-msg"><style type="text/css"></style><div><div id="style_16008395351937236760_BODY"><div class="cl_943304"><div>Hi list,</div><div> </div><div>CentOS 7.7.1908</div><div>OpenSIPS 2.4.8 x86_64</div><div> </div><div>2 OpenSIPS processes use almost 100% of CPU.</div><div>I see it in top.</div><div>This load is always generated by the same listener/interface:</div><div> </div><div>    Process::  ID=17 PID=44694 Type=SIP receiver udp:10.229.3.33:5070 <br>    Process::  ID=18 PID=44695 Type=SIP receiver udp:10.229.3.33:5070 <br> </div><div>Configured ‘children=4’ global parameter (I also changed it).</div><div>I also tried to increase/decrease ‘use_children 10’ and ‘use_children 5’ for this interface, but no change.</div><div> </div><div>There are only 3 references to this interface in the script:</div><div> </div><div>    listen=udp:10.229.3.33:5070 # INTERNAL</div><div>    ...</div><div>    mid_registrar_save("wsslocation"); # ~20 WSS connections</div><div>    $fs = "udp:10.229.3.33:5070";</div><div>    …</div><div>    mid_registrar_save("location"); # up to 27k registrations from Internet</div><div>    $fs = "udp:10.229.3.33:5070";</div><div> </div><div> </div><div>10.229.3.33:5070 is an internal interface, from which registrations which go to public IP</div><div>are sent further to the other internal server.</div><div> </div><div>     i n t e r n e t ---> [1.2.3.4 -> 10.229.3.33:5070] ---> 10.x.x.x</div><div> </div><div>Any time, under any traffic the CPU load is the same and 2 processes</div><div>of this listener load it:</div><div> </div><div>http://alexeyka.zantsev.com/opensips_cpu/12-top.png</div><div> </div><div><div>voip-sbc ~ # opensipsctl fifo ps | grep  6798[67]<br>Process::  ID=11 PID=67986 Type=SIP receiver udp:10.229.3.33:5070 <br>Process::  ID=12 PID=67987 Type=SIP receiver udp:10.229.3.33:5070 <br>voip-sbc ~ # <br>voip-sbc ~ # <br>voip-sbc ~ # opensipsctl fifo ps | grep udp:10.229.3.33:5070<br>Process::  ID=9 PID=67984 Type=SIP receiver udp:10.229.3.33:5070 <br>Process::  ID=10 PID=67985 Type=SIP receiver udp:10.229.3.33:5070 <br>Process::  ID=11 PID=67986 Type=SIP receiver udp:10.229.3.33:5070 <br>Process::  ID=12 PID=67987 Type=SIP receiver udp:10.229.3.33:5070 <br>voip-sbc ~ # </div><div> </div><div>On the screenshots you may see that CPU is laoded regardless of VoIP traffic —</div><div>all day long, both with 5000 registered users at night and with 27000 at the day time.</div><div> </div><div>  12 hours, CPU load does not change: http://alexeyka.zantsev.com/opensips_cpu/12-cpu.png</div><div>  12 hours, eth0 (internal) traffic: http://alexeyka.zantsev.com/opensips_cpu/12-eth0.png</div><div>  12 hours, eth1 (external) traffic: http://alexeyka.zantsev.com/opensips_cpu/12-eth1.png</div><div>  12 hours, registered users, from 4.41k to 27.34k http://alexeyka.zantsev.com/opensips_cpu/12-regs.png</div><div> </div><div> </div><div>This was with 2.4.7, I upgraded to 2.4.8, no change.</div></div><div> </div><div data-signature-widget="container"><div data-signature-widget="content"><div>-----------------------------------------------<br><span style="font-size: 15px;">BR, Alexey</span><br style="font-size: 15px;"><span style="font-size: 15px;"><a href="http://alexeyka.zantsev.com/" target="_blank">http://alexeyka.zantsev.com/</a></span></div></div></div></div></div></div></div><div> </div></BODY></HTML>