Hi,
Yes I check them, the only 2 point that I have actually not tested is to change :
- You might have to decrease TCP_BUF_SIZE to a smaller value (e.g 8K)
- You might want to increase PKG_MEM_POOL_SIZE (for large queues)
I’m using Kamailio 3.2.1
I have set:
tcp children to 50
tcp_max_connections=104096
started wit -m 4096 -M 64
with sockstat I have:
sockets: used 2171
TCP: inuse 913 orphan 1 tw 4 alloc 939 mem 29
UDP: inuse 440 mem 372
UDPLITE: inuse 0
RAW: inuse 1
FRAG: inuse 0 memory 0
BR
Laurent
De : sr-users-bounces@lists.sip-router.org
[mailto:sr-users-bounces@lists.sip-router.org] De la part de Daniel-Constantin Mierla
Envoyé : mardi 9 septembre 2014 14:46
À : Kamailio (SER) - Users Mailing List
Objet : Re: [SR-Users] TCP SYN only
Hello,
have you checked the file in the sources located at doc/tcp_tunning.txt?
Cheers,
Daniel
On 09/09/14 14:40, Laurent Schweizer wrote:
Dear all,Since few weeks I have more and more TCP issue, I can see that sometimes the client send a TCP SYN but never get any response.106.123315 62.12.179.104 -> X.X.X.X TCP 39174 > sip [SYN] Seq=0 Win=4380 Len=0 MSS=1380 TSV=4294942209 TSER=0 WS=1109.124384 62.12.179.104 -> X.X.X.X TCP 39174 > sip [SYN] Seq=0 Win=4380 Len=0 MSS=1380 TSV=4294942510 TSER=0 WS=1111.202946 62.12.179.104 -> X.X.X.X TCP 4993 > sip [SYN] Seq=0 Win=4380 Len=0 MSS=1380 TSV=4294942717 TSER=0 WS=1114.204707 62.12.179.104 -> X.X.X.X TCP 4993 > sip [SYN] Seq=0 Win=4380 Len=0 MSS=1380 TSV=4294943018 TSER=0 WS=1I have found on internet many doc regarding TCP and max connection issue and I have already done change in sysctl (see below) to increase the number of tcp connection but seems still not ok.Any idea ?Best regardsLaurentnet.ipv4.ip_forward = 0net.ipv4.conf.default.rp_filter = 1net.ipv4.conf.default.accept_source_route = 0kernel.sysrq = 0kernel.core_uses_pid = 1net.ipv4.tcp_syncookies = 0net.bridge.bridge-nf-call-ip6tables = 0net.bridge.bridge-nf-call-iptables = 0net.bridge.bridge-nf-call-arptables = 0kernel.msgmnb = 65536kernel.msgmax = 65536kernel.shmmax = 68719476736kernel.shmall = 4294967296net.ipv4.tcp_timestamps = 1net.ipv4.tcp_fin_timeout = 30net.ipv4.tcp_keepalive_time = 1200net.ipv4.tcp_max_syn_backlog = 8192net.ipv4.tcp_max_tw_buckets = 5000fs.file-max = 2097152net.ipv4.ip_local_port_range = 2000 65535net.ipv4.tcp_max_tw_buckets = 1440000net.ipv4.tcp_tw_recycle = 1net.ipv4.tcp_tw_reuse = 1net.core.somaxconn = 65536net.core.netdev_max_backlog = 65536
_______________________________________________SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Next Kamailio Advanced Trainings 2014 - http://www.asipto.com
Sep 22-25, Berlin, Germany