[sr-dev] [kamailio/kamailio] registrar: memory leak in xavp_rcd (#1834)

Olle E. Johansson notifications at github.com
Mon Feb 4 12:26:01 CET 2019


### Description
Kamailio 5.1 on Debian
- Enabled xavp_rcd in registrar
- Shared memory usage keeps growing over time

### Troubleshooting

- `mod.stats core all `show a large amount of allocated memory for xavp_new_value that keeps growing over time

`  xavp_new_value(94): 48815768`


#### Reproduction

We have the same symptom on multiple servers


#### Log Messages

Nothing shown in the log yet. 

### Possible Solutions

Using reg_fetch_contacts to grab expiry time is an alternative that works.

### Additional Information

  * **Kamailio Version** - output of `kamailio -v`

```
version: kamailio 5.1.4 (x86_64/linux) 
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, 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
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown 
compiled on 10:59:52 Jul  3 2018 with gcc 6.3.0
```

* **Operating System**:


```
Debian 9.7 x86_64
```


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1834
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20190204/e79d1fd3/attachment.html>


More information about the sr-dev mailing list