Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting notifier_processes to 1 or more seems to cause memory leak #2733

Closed
itlevel3 opened this issue May 10, 2021 · 4 comments
Closed

Setting notifier_processes to 1 or more seems to cause memory leak #2733

itlevel3 opened this issue May 10, 2021 · 4 comments

Comments

@itlevel3
Copy link

Hello,
We use Kamailio with KAZOO. We have set notifier_processes as follows:

modparam("presence", "notifier_processes", 1)

A value of 1 or greater seems to be required to avoid race conditions when multiple notify's need to be sent.
We've noticed noticed what seems to be a memory leak in Kamailio process. After several days, Kamailio will crash after consuming all system memory.
I have not found any other reports of this happening to others.
Does this seem familiar to anyone?

@henningw
Copy link
Contributor

Thanks for the report.
Please specify the version of Kamailio that you are using ("kamailio -v")

Are you using the "official" kamailio version of some version with kazoo specific patches? If the latter, then you should report this issue to the kazoo vendor.

@itlevel3
Copy link
Author

Hi Henning,
Sorry about that. Should have been included in my OP. See below.
We are using official Kamailio with mod_kazoo.

[root@proxy01-central ~]# kamailio -v
version: kamailio 5.2.5 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, 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_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 01:14:59 Nov 19 2019 with gcc 7.3.1

@henningw
Copy link
Contributor

Thanks. Please update to a maintained version of kamailio, 5.2.x is already end of life. Your bug might be already fixed in a newer version. My suggestion would be to use the latest 5.4.x or 5.5.0 version. Please re-open if the bug is still present there.

@itlevel3
Copy link
Author

itlevel3 commented May 11, 2021

Thanks @henningw. Does a memory leak with notifier_processes ring a bell by any chance?
The closest thing I've found seems to be the one below, but I don't know if we use RPC commands. Any suggestions in regards?

commit b97bb77
Author: Victor Seva linuxmaniac@torreviejawireless.org
Date: Fri Jun 28 17:06:54 2019 +0200

usrloc: fix memory leak on DB_ONLY mode on RPC commands

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants