[OpenSIPS-Users] opensips tcp state

Nguyen Dang Vo vdnguyen58 at gmail.com
Thu Dec 4 01:22:15 CET 2014


Hi all,

After running opensips for a while (one or two days), I got this log
message:


*INFO:core:send2child: no free tcp receiver, connection passed to the least
busy one (46)*
*INFO:core:probe_max_sock_buff: using snd buffer of 509 kb*

Then I checked the number of tcp connections:
#*opensipsctl fifo list_tcp_conns*

It displayed about 145 connections, but it's impossible since this is the
testing server only. Here are all the output:
-----------------------------
Connection::  ID=1203 Type=tls State=18446744073709551615 Source=
67.21.5.36:12497 Destination=sip_test_ip:5061 Timeout=2014-12-02 01:33:26
Pending lifetime=135250
Connection::  ID=1206 Type=tcp State=3 Source=162.236.129.149:62237
Destination=sip_test_ip:5060 Timeout=2014-12-03 14:10:18 Pending lifetime=0
Connection::  ID=1214 Type=tcp State=3 Source=162.236.129.149:62272
Destination=sip_test_ip:5060 Timeout=2014-12-03 14:24:18 Pending lifetime=0
Connection::  ID=1221 Type=tls State=0 Source=67.21.5.36:61790
Destination=sip_test_ip:5061 Timeout=2014-12-03 15:38:27 Pending
lifetime=137101
Connection::  ID=1222 Type=tcp State=3 Source=172.56.38.226:46235
Destination=sip_test_ip:5060 Timeout=2014-12-03 14:41:55 Pending lifetime=0
Connection::  ID=1223 Type=tcp State=3 Source=172.56.38.226:27013
Destination=sip_test_ip:5060 Timeout=2014-12-03 14:43:36 Pending lifetime=0
Connection::  ID=1224 Type=tcp State=3 Source=162.236.129.149:62314
Destination=sip_test_ip:5060 Timeout=2014-12-03 14:45:10 Pending lifetime=0
Connection::  ID=1225 Type=tcp State=3 Source=162.236.129.149:62327
Destination=sip_test_ip:5060 Timeout=2014-12-03 14:48:55 Pending lifetime=0
Connection::  ID=1226 Type=tcp State=3 Source=162.236.129.149:62344
Destination=sip_test_ip:5060 Timeout=2014-12-03 14:59:33 Pending lifetime=0
Connection::  ID=1227 Type=tcp State=3 Source=162.236.129.149:62352
Destination=sip_test_ip:5060 Timeout=2014-12-03 15:04:56 Pending lifetime=0
Connection::  ID=1228 Type=tcp State=3 Source=162.236.129.149:62366
Destination=sip_test_ip:5060 Timeout=2014-12-03 15:15:34 Pending lifetime=0
Connection::  ID=1229 Type=tls State=3 Source=67.21.5.36:26619
Destination=sip_test_ip:5061 Timeout=2014-12-03 15:16:41 Pending lifetime=0
Connection::  ID=1230 Type=tls State=3 Source=67.21.5.36:22292
Destination=sip_test_ip:5061 Timeout=2014-12-03 15:19:29 Pending lifetime=0
[...]
-----------------------------

According to netstat, the server had lots of CLOSE_WAIT sockets:
-----------------------------
tcp      361      0 sip_test_ip:5061         67.21.5.36:32969
 CLOSE_WAIT
tcp      361      0 sip_test_ip:5061         67.21.5.36:36210
 CLOSE_WAIT
tcp      361      0 sip_test_ip:5061         67.21.5.36:17264
 CLOSE_WAIT
tcp      361      0 sip_test_ip:5061         67.21.5.36:10884
 CLOSE_WAIT
tcp      464      0 sip_test_ip:5060         172.56.38.226:65288
ESTABLISHED
tcp      361      0 sip_test_ip:5061         67.21.5.36:56345
 CLOSE_WAIT
tcp      361      0 sip_test_ip:5061         67.21.5.36:46915
 CLOSE_WAIT
tcp      361      0 sip_test_ip:5061         67.21.5.36:62188
 CLOSE_WAIT
tcp      361      0 sip_test_ip:5061         67.21.5.36:28660
 CLOSE_WAIT
tcp      361      0 sip_test_ip:5061         67.21.5.36:62848
 CLOSE_WAIT
tcp      361      0 sip_test_ip:5061         67.21.5.36:16914
 CLOSE_WAIT
tcp      361      0 sip_test_ip:5061         67.21.5.36:37157
 CLOSE_WAIT
tcp      361      0 sip_test_ip:5061         67.21.5.36:27378
 CLOSE_WAIT
-------------------------------


I think something happened with the first TCP connection because it had
"strange" State = 18446744073709551615
So what is "State" mean?

--
NguyenVD
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20141203/d502e956/attachment-0001.htm>


More information about the Users mailing list