Hello,
We have noticed the exact issue on our own systems (Kamailio 5.8.2 on Ubuntu 22.04.4 LTS). Every time we run
kamctl rpc tls.reload
the "shmem:used_size" output from the 'kamctl stats shmem' command increases by about 3.2MB.
This looks like a memory leak, so I tried to find which module could be increasing its memory use by running the following commands:
kamcmd mod.stats all shm kamcmd pkg.stats kamcmd mod.stats all pkg
but if there are any changes before and after the restart those are minimal and they do not amount to anything approximating 3.19 MB for every reload.
I have attached the before and after outputs of the above commands in case these help.
[after_mod.stats_all_pkg.txt](https://github.com/user-attachments/files/18623471/after_mod.stats_all_pkg.t...) [after_mod.stats_all_shm.txt](https://github.com/user-attachments/files/18623474/after_mod.stats_all_shm.t...) [after_pkg.stats.txt](https://github.com/user-attachments/files/18623472/after_pkg.stats.txt) [after_stats_shmem.txt](https://github.com/user-attachments/files/18623473/after_stats_shmem.txt)
[before_mod.stats_all_pkg.txt](https://github.com/user-attachments/files/18623482/before_mod.stats_all_pkg....) [before_mod.stats_all_shm.txt](https://github.com/user-attachments/files/18623481/before_mod.stats_all_shm....) [before_pkg.stats.txt](https://github.com/user-attachments/files/18623484/before_pkg.stats.txt) [before_stats_shmem.txt](https://github.com/user-attachments/files/18623483/before_stats_shmem.txt)