Thanks for prompt response.

Some more information : 

We are running it on virtual machine(Xenserver). 
Selinux and IPtables  are  disabled.I will check if VM platform is putting some limits or not.
Further i have same Kamailio script in another server and i am not facing this issue there.
OS max UDP buffer limit parameters is configured as below : 
net.core.rmem_max=26214400
net.core.rmem_default=26214400

Any other clue is most welcome.

On Tue, Aug 28, 2018 at 5:01 PM Daniel-Constantin Mierla <miconda@gmail.com> wrote:

Hello,


On 28.08.18 12:42, sagar malam wrote:
Hello,

I am using Kamailio as a SIP proxy.So it receives SIP packet from internet and forwards it to FS servers in local network.When i execute "ss" command i see very high value in RECV-Q column.I THINK IT IS NOT NORMAL.PLEASE CORRECT ME IF I AM WRONG.
====================================================
[root@fep-1 proc]#  ss -u -a -n -e | grep 5060
UNCONN     0      0      10.50.8.1:5060                     *:*                   ino:6831630 sk:fd <->
UNCONN     0      0      10.50.7.18:5060                     *:*                   ino:6831629 sk:fe <->
UNCONN     1183104 0      10.50.7.254:5060                     *:*                   ino:6831627 sk:ff <->
UNCONN     84864  0       2607:f900:1:3::254:5060                    :::*                   ino:6831628 sk:100 v6only:1 <->
======================================================

Initially i thought that there is something in script which must be causing kamailio to process UDP request slower but i faced same issue with a very simple script where i simply reply with stateless 200 OK for each sip request : 
request_route {

                sl_send_reply("200","OK");exit;
        $avp(uuid) = $rm + "-" + $ci;

........
.........
.........
.......

Server configuration : 
OS : CENTOS 7
Kernel : 4.16
CPU : 5 X Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
RAM : 32 GB

Please help me debugging this issue.Thanks in advance

if you have performance issues just with a very simple config sending a stateless sip reply, then check your system/firewall configuration/limits. Specially on centos, I have seen a lot of restrictive traffic rates limits set by selinux. Also, if you run in a virtual machine, there can be limits enforced by the vm platform.

If you still cannot sort out, I would just run similar tests on a vanilla debian.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com