<div dir="ltr">Dear all,<div><br></div><div>Our server running Opensips-1.8.4-tls ,but some times opensips will not response any SIP message .</div><div><br></div><div><b>1. opensips still in system progress:</b></div><div>
<br></div><div><div>$ps aux | grep opensips</div><div><br></div><div>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</div><div>
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</div><div>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</div>
<div>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</div><div>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</div>
<div>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</div><div>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</div>
<div>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</div><div>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</div>
</div><div><br></div><div><b>2.opensips still listened 5060 port</b></div><div><br></div><div>lsof -i:5060</div><div><div>COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME</div><div>opensips 1463 opensips 5u IPv4 8137 0t0 UDP x-i-08a1ab58:sip </div>
<div>opensips 1469 opensips 5u IPv4 8137 0t0 UDP x-i-08a1ab58:sip </div><div>opensips 1470 opensips 5u IPv4 8137 0t0 UDP x-i-08a1ab58:sip </div><div>opensips 1471 opensips 5u IPv4 8137 0t0 UDP x-i-08a1ab58:sip </div>
<div>opensips 1472 opensips 5u IPv4 8137 0t0 UDP x-i-08a1ab58:sip </div><div>opensips 1473 opensips 5u IPv4 8137 0t0 UDP x-i-08a1ab58:sip </div><div>opensips 1474 opensips 5u IPv4 8137 0t0 UDP x-i-08a1ab58:sip </div>
<div>opensips 1475 opensips 5u IPv4 8137 0t0 UDP x-i-08a1ab58:sip </div><div>opensips 1476 opensips 5u IPv4 8137 0t0 UDP x-i-08a1ab58:sip </div></div><div><br clear="all"><div><b>3. we no get any error message</b></div>
<div><br></div><div><b><a href="http://4.no">4.no</a> over utilization of CPU and memory</b></div><div><br></div><div><b>5.try to use "gdb /path/opensips PID" and do "bt" to get backtrace</b></div><div>
<div>we get message below:</div><div><br></div><div>(gdb) bt</div><div>#0 0x00007f684d1e6ebd in nanosleep () from /lib64/libc.so.6</div><div>#1 0x00007f684d20f414 in usleep () from /lib64/libc.so.6</div><div>#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</div>
<div>#3 0x00000000004170d7 in do_action (a=a@entry=0x7f684cd48f60, msg=msg@entry=0x7f684cd59d80) at action.c:1492</div><div>#4 0x0000000000418c88 in run_action_list (msg=<optimized out>, a=0x7f684cd48f60) at action.c:158</div>
<div>#5 run_actions (msg=0x7f684cd59d80, a=<optimized out>) at action.c:123</div><div>#6 do_action (a=a@entry=0x7f684cd45dc8, msg=msg@entry=0x7f684cd59d80) at action.c:582</div><div>#7 0x000000000041b94c in run_action_list (a=<optimized out>, msg=0x7f684cd59d80) at action.c:158</div>
<div>#8 0x000000000041960a in do_action (a=a@entry=0x7f684cd46010, msg=msg@entry=0x7f684cd59d80) at action.c:925</div><div>#9 0x000000000041bb2d in run_action_list (msg=<optimized out>, a=<optimized out>) at action.c:158</div>
<div>#10 run_actions (msg=0x7f684cd59d80, a=<optimized out>) at action.c:123</div><div>#11 run_top_route (a=<optimized out>, msg=msg@entry=0x7f684cd59d80) at action.c:198</div><div>#12 0x000000000047ec53 in receive_msg (buf=<optimized out>, len=<optimized out>, rcv_info=rcv_info@entry=0x7fffc03f94e0) at receive.c:171</div>
<div>#13 0x00000000004eb690 in udp_rcv_loop () at udp_server.c:424</div><div>#14 0x0000000000414217 in main_loop () at main.c:884</div><div>#15 main (argc=<optimized out>, argv=<optimized out>) at main.c:1557</div>
<div><br></div><div><br></div><div><br></div><div>(gdb) bt</div><div>#0 0x00007f684d20ec03 in select () from /lib64/libc.so.6</div><div>#1 0x00000000004ca7b7 in run_timer_process_jif () at timer.c:455</div><div>#2 start_timer_processes () at timer.c:494</div>
<div>#3 0x0000000000414531 in main_loop () at main.c:958</div><div>#4 main (argc=<optimized out>, argv=<optimized out>) at main.c:1557</div><div><br></div><div><br></div><div><br></div><div>(gdb)bt</div><div>
#0 0x00007f684d1e6ebd in nanosleep () from /lib64/libc.so.6</div><div>#1 0x00007f684d20f414 in usleep () from /lib64/libc.so.6</div><div>#2 0x00007f6848eff235 in lb_reload_data () at load_balancer.c:245</div><div>#3 mi_lb_reload (cmd_tree=<optimized out>, param=<optimized out>) at load_balancer.c:528</div>
<div>#4 0x00007f6847bdf825 in run_mi_cmd (cmd=0x7f684cd547c0, cmd=0x7f684cd547c0, param=0x7fffc03f94a0, f=<optimized out>, t=0x0) at ../../mi/mi.h:109</div><div>#5 mi_datagram_server (rx_sock=<optimized out>, tx_sock=<optimized out>) at datagram_fnc.c:520</div>
<div>#6 0x00007f6847be06e0 in datagram_process (rank=<optimized out>) at mi_datagram.c:311</div><div>#7 0x00000000004ae069 in start_module_procs () at sr_module.c:585</div><div>#8 0x0000000000414056 in main_loop () at main.c:818</div>
<div>#9 main (argc=<optimized out>, argv=<optimized out>) at main.c:1557</div><div><br></div><div><br></div><div><br></div><div>(gdb)</div><div>#0 0x00007f684d1e6e5d in pause () from /lib64/libc.so.6</div><div>
#1 0x000000000041461a in main_loop () at main.c:1025</div><div>#2 main (argc=<optimized out>, argv=<optimized out>) at main.c:1557</div></div><div><br></div><div>any idea?</div><div><br></div>-- <br><div dir="ltr">
<div><br></div><div><span>Regards,</span>
</div><div><span><br></span></div><div><span style="font-size:14px">Yinjing Gao</span></div></div>
</div></div>