Hi,
the tls total memory before and after a tls connection is cleaned up does not match,
during test there were 10 tls connection created for which I see tls_h_close and tls_h_tcpconn_clean were called exactly 10 times for the same connection ids,
bit before and after the tls shm memory does not match, using command: kamcmd mod.stats tls shm
could there be a leak? please suggest
thanks!
-- View this message in context: http://sip-router.1086192.n5.nabble.com/missing-memory-after-tls-cleanup-tp1... Sent from the Users mailing list archive at Nabble.com.
Hello,
there can be some overhead taken away by memory fragments.
Can you give the output of:
kamctl stats shmem
before and after the test?
Cheers, Daniel
On 26/01/2017 05:37, Andy wrote:
Hi,
the tls total memory before and after a tls connection is cleaned up does not match,
during test there were 10 tls connection created for which I see tls_h_close and tls_h_tcpconn_clean were called exactly 10 times for the same connection ids,
bit before and after the tls shm memory does not match, using command: kamcmd mod.stats tls shm
could there be a leak? please suggest
thanks!
-- View this message in context: http://sip-router.1086192.n5.nabble.com/missing-memory-after-tls-cleanup-tp1... Sent from the Users mailing list archive at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Thanks Daniel for the quick response, here is before/after I see real_used_size increased by 880k
before: shmem:fragments = 26346 shmem:free_size = 8572547448 shmem:max_used_size = 19229728 shmem:real_used_size = 17387144 shmem:total_size = 8589934592 shmem:used_size = 11844368
after: shmem:fragments = 8928 shmem:free_size = 8571645480 shmem:max_used_size = 19229728 shmem:real_used_size = 18289112 shmem:total_size = 8589934592 shmem:used_size = 12757064
-- View this message in context: http://sip-router.1086192.n5.nabble.com/missing-memory-after-tls-cleanup-tp1... Sent from the Users mailing list archive at Nabble.com.
Hello,
fragments are less, then it might be other structures populated by other modules. Can you share the full output of 'kamctl stats' before and after the tests?
Cheers, Daniel
On 26/01/2017 19:41, Andy wrote:
Thanks Daniel for the quick response, here is before/after I see real_used_size increased by 880k
before: shmem:fragments = 26346 shmem:free_size = 8572547448 shmem:max_used_size = 19229728 shmem:real_used_size = 17387144 shmem:total_size = 8589934592 shmem:used_size = 11844368
after: shmem:fragments = 8928 shmem:free_size = 8571645480 shmem:max_used_size = 19229728 shmem:real_used_size = 18289112 shmem:total_size = 8589934592 shmem:used_size = 12757064
-- View this message in context: http://sip-router.1086192.n5.nabble.com/missing-memory-after-tls-cleanup-tp1... Sent from the Users mailing list archive at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi Daniel, Here is the output of kamctl stats,
BEFORE: ===== core:bad_URIs_rcvd = 0 core:bad_msg_hdr = 0 core:drop_replies = 0 core:drop_requests = 0 core:err_replies = 0 core:err_requests = 0 core:fwd_replies = 0 core:fwd_requests = 0 core:rcv_replies = 3 core:rcv_requests = 5 core:unsupported_methods = 0 dns:failed_dns_request = 0 mysql:driver_errors = 0 shmem:fragments = 5681 shmem:free_size = 8578506984 shmem:max_used_size = 11643552 shmem:real_used_size = 11427608 shmem:total_size = 8589934592 shmem:used_size = 9911288 sl:1xx_replies = 0 sl:200_replies = 0 sl:202_replies = 0 sl:2xx_replies = 0 sl:300_replies = 0 sl:301_replies = 0 sl:302_replies = 0 sl:3xx_replies = 0 sl:400_replies = 0 sl:401_replies = 0 sl:403_replies = 1 sl:404_replies = 0 sl:407_replies = 0 sl:408_replies = 0 sl:483_replies = 0 sl:4xx_replies = 0 sl:500_replies = 0 sl:5xx_replies = 0 sl:6xx_replies = 0 sl:failures = 0 sl:received_ACKs = 0 sl:sent_err_replies = 0 sl:sent_replies = 1 sl:xxx_replies = 0 tcp:con_reset = 0 tcp:con_timeout = 0 tcp:connect_failed = 0 tcp:connect_success = 3 tcp:current_opened_connections = 0 tcp:current_write_queue_size = 0 tcp:established = 7 tcp:local_reject = 0 tcp:passive_open = 4 tcp:send_timeout = 0 tcp:sendq_full = 0
AFTER: ======= core:bad_URIs_rcvd = 0 core:bad_msg_hdr = 0 core:drop_replies = 0 core:drop_requests = 0 core:err_replies = 0 core:err_requests = 0 core:fwd_replies = 0 core:fwd_requests = 0 core:rcv_replies = 4 core:rcv_requests = 6 core:unsupported_methods = 0 dns:failed_dns_request = 0 mysql:driver_errors = 0 shmem:fragments = 5655 shmem:free_size = 8578497104 shmem:max_used_size = 11653256 shmem:real_used_size = 11437488 shmem:total_size = 8589934592 shmem:used_size = 9920592 sl:1xx_replies = 0 sl:200_replies = 0 sl:202_replies = 0 sl:2xx_replies = 0 sl:300_replies = 0 sl:301_replies = 0 sl:302_replies = 0 sl:3xx_replies = 0 sl:400_replies = 0 sl:401_replies = 0 sl:403_replies = 1 sl:404_replies = 0 sl:407_replies = 0 sl:408_replies = 0 sl:483_replies = 0 sl:4xx_replies = 0 sl:500_replies = 0 sl:5xx_replies = 0 sl:6xx_replies = 0 sl:failures = 0 sl:received_ACKs = 0 sl:sent_err_replies = 0 sl:sent_replies = 1 sl:xxx_replies = 0 tcp:con_reset = 0 tcp:con_timeout = 0 tcp:connect_failed = 0 tcp:connect_success = 4 tcp:current_opened_connections = 0 tcp:current_write_queue_size = 0 tcp:established = 9 tcp:local_reject = 0 tcp:passive_open = 5 tcp:send_timeout = 0 tcp:sendq_full = 0
I made a Register request, and then closed the client.
thanks
-- View this message in context: http://sip-router.1086192.n5.nabble.com/missing-memory-after-tls-cleanup-tp1... Sent from the Users mailing list archive at Nabble.com.