<div dir="ltr">Hello Members, <div>I have kamailio setup backed with mysql db, using db_cluster module for spliting read and write..</div><div>Lisiting on three  different virtual ips are bind with same/single  udp port<b>1</b> for processing  calls.</div><div> One  static IP is bind with  udp port<b>2</b>  to for processing/response  to option messages send from  keepalived external script  after every few seconds and for DMQ messages from other kamailio node.  </div><div><br></div><div>General configuation details:</div><div>children=16<br>fork=yes</div><div>listen=udp:VIP:SIP_PORT1<br></div><div>listen=udp:VIP2:SIP_PORT1<br>listen=udp:VIP3:SIP_PORT1</div><div>listen=udp:StaticIP3:SIP_PORT2  <br><div><div>listen=tcp:SIP:RPC_PORT  <br></div><div><br></div><div>SH_MEM=5012<br>PRIV_MEM=264<br></div><div><br></div><div>System Specification : 24 GB RAM, 12 CPUs</div><div><br></div><div>Sometimes kamailio  radomly stop processing the requests or give no response on  new requests recevied on virtual ips and as well it did't show any error in syslog. </div><div><br></div><div>To monitor the kamailio memory I used promethues (<a href="https://github.com/florentchauveau/kamailio_exporter" target="_blank">https://github.com/florentchauveau/kamailio_exporter</a>)</div><div><br></div><div>The moment kamailio stop processing the requests it also stop responding to kamailio exporter and scrap request get timeout.  i.e error log on console </div><div><span style="background-color:rgb(255,255,0)">debian prometheus-kamailio-exporter[83440]: 2021/05/20 12:15:27 [error] cannot read header: read unix @->/tmp/kamailio__ctl: i/o timeout</span><br></div><div><br></div><div><br></div><div>After getting first timeout occurrence of 

kamailio-exporter scrap request, kamailio processed sip messages for almost 30 seconds then completly stop replying to any message.  But it keep replying to option message arrive on different port from keepalived script. </div><div><br></div><div>Stats :</div><div>Active dialog: 75 </div><div>Shared memory used: 150 MB</div><div><br></div><div>Kamailio Installed version :</div><div>kamailio -v<br>version: kamailio 5.4.1 (x86_64/linux) 2ca223<br>flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED<br>ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB<br>poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.<br>id: 2ca223<br>compiled on 12:51:24 Sep 21 2020 with gcc 6.3.0</div></div><div><br></div><div><br></div><div>Is anyone else face similar issue  or idea why kamailio is showing such behaviour.?</div><div><br></div><div>Please guide me on what I should do to find and fix the issue. <br></div><div><br></div><div>Thanks </div>-- <br><div dir="ltr" data-smartmail="gmail_signature">Regards<div>M Arqum</div></div></div></div>