<p>Today I discovered my opensips server is using 100% of my cpu since yesterday.. It have been installed for a few weeks without any issues.. (non prod setup)</p>
<p>[root@opensips-2 ~]# opensips -V<br>
version: opensips 2.1.0 (x86_64/linux)<br>
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT<br>
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535<br>
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.<br>
main.c compiled on 08:02:47 May 8 2015 with gcc 4.8.3</p>
<p>Tasks: 124 total, 4 running, 120 sleeping, 0 stopped, 0 zombie<br>
%Cpu(s): 12.6 us, 52.9 sy, 0.0 ni, 34.0 id, 0.6 wa, 0.0 hi, 0.0 si, 0.0 st<br>
KiB Mem : 5947400 total, 5430060 free, 147644 used, 369696 buff/cache<br>
KiB Swap: 1703932 total, 1703932 free, 0 used. 5590216 avail Mem</p>
<p>PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND<br>
13058 root 20 0 1240056 2136 644 R 100.0 0.0 3:39.90 opensips<br>
13059 root 20 0 1240056 2136 644 R 100.0 0.0 3:40.12 opensips<br>
29 root 20 0 0 0 0 S 6.7 0.0 0:00.41 kworker/1:1<br>
666 root 20 0 195088 4244 3404 S 6.7 0.1 0:00.26 vmtoolsd</p>
<p>[root@opensips-2 ~]# strace -p 13058<br>
recvfrom(9, 0x78f080, 65535, 0, 0x7fc05bfa1e28, 0x7ffc99176f78) = -1 EAGAIN (Resource temporarily unavailable)<br>
recvfrom(9, 0x78f080, 65535, 0, 0x7fc05bfa1e28, 0x7ffc99176f78) = -1 EAGAIN (Resource temporarily unavailable)<br>
recvfrom(9, 0x78f080, 65535, 0, 0x7fc05bfa1e28, 0x7ffc99176f78) = -1 EAGAIN (Resource temporarily unavailable)<br>
recvfrom(9, 0x78f080, 65535, 0, 0x7fc05bfa1e28, 0x7ffc99176f78) = -1 EAGAIN (Resource temporarily unavailable)<br>
recvfrom(9, 0x78f080, 65535, 0, 0x7fc05bfa1e28, 0x7ffc99176f78) = -1 EAGAIN (Resource temporarily unavailable)<br>
recvfrom(9, 0x78f080, 65535, 0, 0x7fc05bfa1e28, 0x7ffc99176f78) = -1 EAGAIN (Resource temporarily unavailable)<br>
recvfrom(9, 0x78f080, 65535, 0, 0x7fc05bfa1e28, 0x7ffc99176f78) = -1 EAGAIN (Resource temporarily unavailable)<br>
recvfrom(9, 0x78f080, 65535, 0, 0x7fc05bfa1e28, 0x7ffc99176f78) = -1 EAGAIN (Resource temporarily unavailable)<br>
recvfrom(9, 0x78f080, 65535, 0, 0x7fc05bfa1e28, 0x7ffc99176f78) = -1 EAGAIN (Resource temporarily unavailable)<br>
recvfrom(9, 0x78f080, 65535, 0, 0x7fc05bfa1e28, 0x7ffc99176f78) = -1 EAGAIN (Resource temporarily unavailable)<br>
recvfrom(9, 0x78f080, 65535, 0, 0x7fc05bfa1e28, 0x7ffc99176f78) = -1 EAGAIN (Resource temporarily unavailable)<br>
recvfrom(9, 0x78f080, 65535, 0, 0x7fc05bfa1e28, 0x7ffc99176f78) = -1 EAGAIN (Resource temporarily unavailable)<br>
recvfrom(9, 0x78f080, 65535, 0, 0x7fc05bfa1e28, 0x7ffc99176f78) = -1 EAGAIN (Resource temporarily unavailable)</p>
<p>And nothing is really changed for days now :S</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/581">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciZ_7IwgryxPw6H3jhKpm_zHg7dIdks5oh4TrgaJpZM4FhOGt.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/OpenSIPS/opensips/issues/581"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>