irontec / ivozprovider

IVOZ Provider - Multitenant solution for VoIP telephony providers
https://ivoz.irontec.com/
GNU General Public License v3.0
193 stars 79 forks source link

memory-related error on proxytrunk #1495

Open maruqmch opened 3 years ago

maruqmch commented 3 years ago

Hi Team

I am facing a memory-related error on proxytrunk server, installed ivoz 2.15 version kamailio -v version: kamailio 5.1.2 (x86_64/linux) with -m 512 -M 32 childern=16

System Memory : 24 GB System Cores: 12

On console getting the following error :

Sep 08 14:40:29 debian /usr/sbin/kamailio[99894]: ERROR: [core/mem/q_malloc.c:286]: qm_find_free(): qm_find_free(0x7fdf51eb9000, 11320); Free fragment not found! Sep 08 14:40:29 debian /usr/sbin/kamailio[99894]: ERROR: [core/mem/q_malloc.c:419]: qm_malloc(): qm_malloc(0x7fdf51eb9000, 11320) called from tm: h_table.c: build_cell(320), module: tm; Free fragment not found! Sep 08 14:40:29 debian /usr/sbin/kamailio[99894]: ERROR: tm [t_lookup.c:1279]: new_t(): out of mem: Sep 08 14:40:29 debian /usr/sbin/kamailio[99894]: ERROR: tm [t_lookup.c:1422]: t_newtran(): new_t failed Sep 08 14:40:29 debian /usr/sbin/kamailio[99894]: ERROR: sl [sl_funcs.c:362]: sl_reply_error(): stateless error reply used: No error (2/SL)

Please guide about the possible reason of failure or its memory leakage, possible solution.

Thanks

Kaian commented 3 years ago

Hi @maruqmch

Please, use provided templates for Bug reports, otherwise your issues will be automatically closed.

We haven't experienced memory problems with trunks proxy. We have fixed some memory leaks in proxyusers configuration, but our graphs show proxytrunks are quite stable.

Try increasing private memory from 32 to 256 and check what modules are taking the memory with:

# kamcmd-proxytrunks mod.stats all pkg
# kamcmd-proxytrunks mod.stats all shm

Regards!

maruqmch commented 3 years ago

Hi Karan, Thanks for your comment, will check after increasing memory.

Regards

Kaian commented 3 years ago

Any news on this?

Found the memory leaking module?