Hello Alex,
there might be some performance implications by switching to system malloc. There is also
easier debugging by internal Kamailio memory manager support.
In this particular example with the leak, Kamailio would use in the end all of the system
memory, and the machine out of memory killer will then randomly processes. So the limited
memory pool also helps to protect the system against this kind of leaks.
Cheers,
Henning
--
Henning Westerholt -
https://skalatan.de/blog/
Kamailio services -
https://gilawa.com
-----Original Message-----
From: Alex Balashov <abalashov(a)evaristesys.com>
Sent: Thursday, January 5, 2023 2:50 PM
To: Kamailio (SER) - Users Mailing List <sr-users(a)lists.kamailio.org>
Subject: [SR-Users] Re: pkg memory leak when acc module cdr_enabled
This prompts a question that isn't really related to the problem, but I have wondered
for some time:
What are the downsides of removing PKG_MALLOC and using the libc allocator? It seems like
it would provide unlimited package memory and remove the need to manage it, but I assume
there is a reason why this is not done by default.
-- Alex
On Jan 5, 2023, at 3:11 AM, Henning Westerholt
<hw(a)gilawa.com> wrote:
Hi Juha,
there have been some changes related to that modules indeed for the latest release.
Using memory debugging (
http://www.kamailio.org/wiki/tutorials/troubleshooting/memory),
in particular the statistics and/or memory dump will probably show the place where its
allocated. Then we could probably fix it where its needs to be freed as well.
Cheers,
Henning
--
Henning Westerholt -
https://skalatan.de/blog/ Kamailio services -
https://gilawa.com
-----Original Message-----
From: Juha Heinanen <jh(a)tutpro.com>
Sent: Thursday, January 5, 2023 12:13 AM
To: sr-users(a)lists.kamailio.org
Subject: [SR-Users] pkg memory leak when acc module cdr_enabled
In latest stable K release, we noticed pkg memory leak (pgk memory usage increases by
each processed call). It turned out that the leak goes away if acc module cdr_enable is
not enabled.
Could be a bug in dialog or acc module. Any debug instructions if the bug is not
obvious?
-- Juha
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions To
unsubscribe send an email to sr-users-leave(a)lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions To
unsubscribe send an email to sr-users-leave(a)lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
--
Alex Balashov
Principal Consultant
Evariste Systems LLC
Web:
https://evaristesys.com
Tel: +1-706-510-6800
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to
sr-users-leave(a)lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe: