[OpenSIPS-Users] Opensips stop responding time to time

Yinjing Gao xiaogao at seawolftech.com
Wed Apr 30 08:48:10 CEST 2014


Dear all,

Our server running Opensips-1.8.4-tls ,but some times opensips will not
response any SIP message .

*1. opensips still in system progress:*

$ps aux | grep opensips

opensips  1463  0.0  1.1 303684  6724 ?        S    02:11   0:00
/opt/sbin/opensips -P /var/run/opensips.pid -m 128 -M 4 -u opensips -g
opensips
opensips  1469  0.0  0.4 303684  2576 ?        S    02:11   0:00
/opt/sbin/opensips -P /var/run/opensips.pid -m 128 -M 4 -u opensips -g
opensips
opensips  1470  0.0  0.4 303688  2576 ?        S    02:11   0:00
/opt/sbin/opensips -P /var/run/opensips.pid -m 128 -M 4 -u opensips -g
opensips
opensips  1471  0.2  0.7 303684  4272 ?        S    02:11   0:04
/opt/sbin/opensips -P /var/run/opensips.pid -m 128 -M 4 -u opensips -g
opensips
opensips  1472  0.2  0.6 303684  4076 ?        S    02:11   0:04
/opt/sbin/opensips -P /var/run/opensips.pid -m 128 -M 4 -u opensips -g
opensips
opensips  1473  0.2  0.6 303684  3816 ?        S    02:11   0:04
/opt/sbin/opensips -P /var/run/opensips.pid -m 128 -M 4 -u opensips -g
opensips
opensips  1474  0.2  0.6 303684  3820 ?        S    02:11   0:04
/opt/sbin/opensips -P /var/run/opensips.pid -m 128 -M 4 -u opensips -g
opensips
opensips  1475  0.0  0.3 303684  1908 ?        S    02:11   0:00
/opt/sbin/opensips -P /var/run/opensips.pid -m 128 -M 4 -u opensips -g
opensips
opensips  1476  0.0  0.6 303684  3852 ?        S    02:11   0:00
/opt/sbin/opensips -P /var/run/opensips.pid -m 128 -M 4 -u opensips -g
opensips

*2.opensips still listened 5060 port*

lsof -i:5060
COMMAND   PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
opensips 1463 opensips    5u  IPv4   8137      0t0  UDP x-i-08a1ab58:sip
opensips 1469 opensips    5u  IPv4   8137      0t0  UDP x-i-08a1ab58:sip
opensips 1470 opensips    5u  IPv4   8137      0t0  UDP x-i-08a1ab58:sip
opensips 1471 opensips    5u  IPv4   8137      0t0  UDP x-i-08a1ab58:sip
opensips 1472 opensips    5u  IPv4   8137      0t0  UDP x-i-08a1ab58:sip
opensips 1473 opensips    5u  IPv4   8137      0t0  UDP x-i-08a1ab58:sip
opensips 1474 opensips    5u  IPv4   8137      0t0  UDP x-i-08a1ab58:sip
opensips 1475 opensips    5u  IPv4   8137      0t0  UDP x-i-08a1ab58:sip
opensips 1476 opensips    5u  IPv4   8137      0t0  UDP x-i-08a1ab58:sip

*3. we no get any error message*

*4.no <http://4.no> over utilization of CPU and memory*

*5.try to use "gdb /path/opensips PID" and do "bt" to get backtrace*
we get message below:

(gdb) bt
#0  0x00007f684d1e6ebd in nanosleep () from /lib64/libc.so.6
#1  0x00007f684d20f414 in usleep () from /lib64/libc.so.6
#2  0x00007f6848eff452 in w_load_balance (req=0x7f684cd59d80,
grp=0x7f684cd55c18 "\002", rl=0x7f684cd48d98 "\001", al=0x1 <Address 0x1
out of bounds>) at load_balancer.c:401
#3  0x00000000004170d7 in do_action (a=a at entry=0x7f684cd48f60,
msg=msg at entry=0x7f684cd59d80)
at action.c:1492
#4  0x0000000000418c88 in run_action_list (msg=<optimized out>,
a=0x7f684cd48f60) at action.c:158
#5  run_actions (msg=0x7f684cd59d80, a=<optimized out>) at action.c:123
#6  do_action (a=a at entry=0x7f684cd45dc8, msg=msg at entry=0x7f684cd59d80) at
action.c:582
#7  0x000000000041b94c in run_action_list (a=<optimized out>,
msg=0x7f684cd59d80) at action.c:158
#8  0x000000000041960a in do_action (a=a at entry=0x7f684cd46010,
msg=msg at entry=0x7f684cd59d80)
at action.c:925
#9  0x000000000041bb2d in run_action_list (msg=<optimized out>,
a=<optimized out>) at action.c:158
#10 run_actions (msg=0x7f684cd59d80, a=<optimized out>) at action.c:123
#11 run_top_route (a=<optimized out>, msg=msg at entry=0x7f684cd59d80) at
action.c:198
#12 0x000000000047ec53 in receive_msg (buf=<optimized out>, len=<optimized
out>, rcv_info=rcv_info at entry=0x7fffc03f94e0) at receive.c:171
#13 0x00000000004eb690 in udp_rcv_loop () at udp_server.c:424
#14 0x0000000000414217 in main_loop () at main.c:884
#15 main (argc=<optimized out>, argv=<optimized out>) at main.c:1557



(gdb) bt
#0  0x00007f684d20ec03 in select () from /lib64/libc.so.6
#1  0x00000000004ca7b7 in run_timer_process_jif () at timer.c:455
#2  start_timer_processes () at timer.c:494
#3  0x0000000000414531 in main_loop () at main.c:958
#4  main (argc=<optimized out>, argv=<optimized out>) at main.c:1557



(gdb)bt
#0  0x00007f684d1e6ebd in nanosleep () from /lib64/libc.so.6
#1  0x00007f684d20f414 in usleep () from /lib64/libc.so.6
#2  0x00007f6848eff235 in lb_reload_data () at load_balancer.c:245
#3  mi_lb_reload (cmd_tree=<optimized out>, param=<optimized out>) at
load_balancer.c:528
#4  0x00007f6847bdf825 in run_mi_cmd (cmd=0x7f684cd547c0,
cmd=0x7f684cd547c0, param=0x7fffc03f94a0, f=<optimized out>, t=0x0) at
../../mi/mi.h:109
#5  mi_datagram_server (rx_sock=<optimized out>, tx_sock=<optimized out>)
at datagram_fnc.c:520
#6  0x00007f6847be06e0 in datagram_process (rank=<optimized out>) at
mi_datagram.c:311
#7  0x00000000004ae069 in start_module_procs () at sr_module.c:585
#8  0x0000000000414056 in main_loop () at main.c:818
#9  main (argc=<optimized out>, argv=<optimized out>) at main.c:1557



(gdb)
#0  0x00007f684d1e6e5d in pause () from /lib64/libc.so.6
#1  0x000000000041461a in main_loop () at main.c:1025
#2  main (argc=<optimized out>, argv=<optimized out>) at main.c:1557

any idea?

-- 

Regards,

Yinjing Gao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140430/0c1daf21/attachment-0001.htm>


More information about the Users mailing list