Hello all,
I am using a very simple scritp with corex module enabled . Normal calls works fine, but a scenario where INVITE does notreceive response and the call is released with SIP 408 (request timeout) leads to memmory leak. I verified it making a lot ofcalls with this scenario and printing the shared memory (using kamcmd core.shmmem) . Its ocurred with modparam("corex", "nio_intercept", 1).If I modify to modparam("corex", "nio_intercept", 0) the memmory leak does not ocurr anymore.The problem also occurs in another scenario where the SIP Cancel message is not responded to.
My script has this event route# event routeevent_route[network:msg] {
xlog("L_INFO", "Dentro do Event_Route \n");if (is_incoming()) {xlog("L_INFO", "Received message '$mb' \n");$avp(msg) = $mb;xinfo("avp(msg) = $avp(msg)");} else {xlog("L_INFO", "Sending message '$mb' \n");$avp(msg) = $mb;};}
Test done wtih 4000 calls:
[root@labcom070 kamailio]# kamctl stats shmem{"jsonrpc": "2.0","result": ["shmem:fragments = 900","shmem:free_size = 6180368","shmem:max_used_size = 66980272","shmem:real_used_size = 60928496","shmem:total_size = 67108864","shmem:used_size = 54884944"],"id": 393115}
[root@labcom070 kamailio]# kamcmd mod.stats all shmModule: core{create_avp(178): 52257504counters_prefork_init(211): 53760cfg_clone_str(132): 112cfg_shmize(221): 832main_loop(1381): 16init_pt(104): 16init_pt(103): 16init_pt(102): 6224cfg_register_ctx(47): 96init_tcp(5197): 8192init_tcp(5191): 32768init_tcp(5182): 16init_tcp(5175): 16init_tcp(5167): 16init_tcp(5161): 16init_tcp(5149): 16init_avps(92): 16init_avps(91): 16init_dst_blocklist(435): 16384init_dst_blocklist(427): 16timer_alloc(494): 96init_dns_cache(368): 16init_dns_cache(359): 16384init_dns_cache(351): 16init_dns_cache(343): 16init_timer(264): 16init_timer(263): 16384init_timer(262): 16init_timer(261): 16init_timer(250): 16init_timer(218): 16init_timer(207): 278544init_timer(206): 16init_timer(194): 16cfg_child_cb_new(832): 64sr_cfg_init(371): 16sr_cfg_init(364): 16sr_cfg_init(356): 16sr_cfg_init(344): 16sr_cfg_init(332): 16ksr_shutdown_phase_init(123): 16rpc_hash_add(118): 16qm_shm_lock_init(1463): 16Total: 52687808}
I attached my kamailio script used and a log with one call using the command "kamcmd corex.shm_summary" with modparam("corex", "nio_intercept", 1)
and modparam("corex", "nio_intercept", 0)
Regards,
Vanderlei
__________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
-- Daniel-Constantin Mierla (@ asipto.com) twitter.com/miconda -- linkedin.com/in/miconda Kamailio Consultancy, Training and Development Services -- asipto.com