Ozzyboshi left a comment (kamailio/kamailio#4503)

I generated some calls then I stopped, this is what I god

```
# ngcp-kamcmd proxy tm.list | grep PUB | wc -l
48
# ngcp-kamcmd proxy tm.list | grep PUB | wc -l
26
# ngcp-kamcmd proxy tm.list | grep PUB | wc -l
12
# ngcp-kamcmd proxy tm.list | grep PUB | wc -l
8
# ngcp-kamcmd proxy tm.list | grep PUB | wc -l
2
# ngcp-kamcmd proxy tm.list | grep PUB | wc -l
0
```

So for me there are no transactions in memory and the memory should be freed, 


However if I keep banging kamailio for let's say 15 minutes, with the same 
call, and run thounsands of calls , then stop I get this

```
# ngcp-kamcmd proxy tm.list 
ERROR: reply too big
```

So, according to this, in some heavy traffic situations, it seems the 
transactions are not freed.

After that I run ngcp-kamcmd proxy tm.clean and the whole mem leak disappeared.


The whole process is summarized here

<img width="661" height="288" alt="Image" 
src="https://github.com/user-attachments/assets/6da97b55-f5b2-4728-a77d-8669b078c5c3";
 />

This graph shows
15.52. Start spawning thousand of calls
16.07. Stop spawning calls (the ongoing calls should last 2 or 3 minutes)
16.12. Calls should be terminated, no more dialogs or transactions should be 
open but still we have SHM at about 300MB, this is a plateau and for me it was 
a memory leak. If i run kamcmd proxy tm.list I have a "too big reply", meaning 
that a lot of transactions are still open?
16.27. I run tm clean, shm usage drops immediately to almost zero

So, probably I was wrong, kamailio is not really leaking, it's just keeping 
transactions in memory for some reason.
Is there a way to increase memory so that kamcmd will reply with some data 
instead of giving me the error "too big?"

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4503#issuecomment-3589756573
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/4503/[email protected]>
_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to