[OpenSIPS-Users] 2.4: high CPU usage by 2 processes

Alexey Kazantsev kurgan-rus at inbox.ru
Thu Sep 24 06:20:24 EST 2020


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


More information about the Users mailing list