<p></p>
<p>Closing with an additional comment that doing mod.stats shm is locking shared memory access and it is rather lengthy process in a loaded server with a lot of shm usage (it needs to do grouping for all allocated chunks under shm lock), therefore this is not recommended at all to execute it often, but rather avoid it. Better get the overall shm stats and in case one discover a potential leak or unexpected large use of shm, then leverage mod.stats shm to find the source of the behaviour.</p>
<p>The commits are in master branch, I am not sure yet if they should be backported, the design of those commands seemed to be more for troubleshooting (run it when out of memory to get the reports and then restart), rather than runtime continous monitoring (the above commits try to fix it, but due to lack of extensive testing there can be side effects, thus not rushing to backport changes related to memory manager interaction). For now, just avoid using these rpc commands.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2460#issuecomment-694775225">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZPRKIMX3LVGCG3G3S3SGMVJ7ANCNFSM4QR7KULA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZOOTWQHXLSVRCYXRUDSGMVJ7A5CNFSM4QR7KULKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFFUW3OI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2460#issuecomment-694775225",
"url": "https://github.com/kamailio/kamailio/issues/2460#issuecomment-694775225",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>