Hello there,
I'm using kamailio 5.2.1 with evapi module to send and receive events from
an external application.
During my stress tests to kamailio i have been noticing that at some point
kamailio is getting out of memory:
edge-sip-proxy[20565]ERROR: ESP_LOG: <null>: <core>
[core/mem/q_malloc.c:291]: qm_find_free(): qm_find_free(0x7fb8730b6010,
64); Free fragment not found!
edge-sip-proxy[20565]: ERROR: ESP_LOG: <null>: <core>
[core/mem/q_malloc.c:425]: qm_malloc(): qm_malloc(0x7fb8730b6010, 64)
called from core: core/parser/msg_parser.c: parse_headers(325), module:
core; Free fragment not found!
edge-sip-proxy[20565]: ERROR: ESP_LOG: <null>: <core>
[core/parser/msg_parser.c:328]: parse_headers(): memory allocation error
edge-sip-proxy[20565]: ERROR: ESP_LOG: <null>: pv [pv_core.c:704]:
pv_get_callid(): cannot parse Call-Id header
edge-sip-proxy[20565]: INFO: ESP_LOG: <null>: [evapi:connection-received]
EVAPI msg received -> {"aor":"sip:FUZECI1-x1516@uc.fuze.domain
","contact":"<sip:FUZECI1-x1516@10.225.121.206:5060;transport=UDP>"}
edge-sip-proxy[20565]: ERROR: ESP_LOG: <null>: <core>
[core/mem/q_malloc.c:291]: qm_find_free(): qm_find_free(0x7fb8730b6010,
64); Free fragment not found!
edge-sip-proxy[20565]: ERROR: ESP_LOG: <null>: <core>
[core/mem/q_malloc.c:425]: qm_malloc(): qm_malloc(0x7fb8730b6010, 64)
called from core: core/parser/msg_parser.c: parse_headers(325), module:
core; Free fragment not found!
The process id 20565 is running out of memory as you can see bellow:
output of kamcmd pkg.stats
entry: 14
pid:
rank: -2
used: 6058696
free: 824
real_used: 8387784
total_size: 8388608
total_frags: 30
This process ID is related with Evapi Dispatcher
kamcmd ps | grep 20565
20565 EvAPI Dispatcher
After stop the sipp that was generating traffic to kamailio the evapi
process still have all the memory consumed
Can it be some memory leak in Evapi module?
Best Regards
José Seabra
--
Cumprimentos
José Seabra