<p>Allocated size for tm is indeed very high and it also looks like being induced from uac module, because the uac_reg_update() allocates size of UUID (less than 100) for each registration update, overall being 11472688, means over 100k remote registrations. Do you have so many records in you uacreg table?</p>
<p>After starting kamailio, but before the first error log message containing <code>no more shm memory</code>, do you have other error messages in the logs (especially from tm or uac modules)?</p>
<p>Any reason you are running kamailio printing logs to stderror (terminal) and not to syslog?</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/1895#issuecomment-483654305">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZWLVuMRwTeYKkXizAw_oeL-nVHkuks5vhczSgaJpZM4b7MnP">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZQatwQaBWkoPY14iMibfRzB2IxQ6ks5vhczSgaJpZM4b7MnP.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@miconda in #1895: Allocated size for tm is indeed very high and it also looks like being induced from uac module, because the uac_reg_update() allocates size of UUID (less than 100) for each registration update, overall being 11472688, means over 100k remote registrations. Do you have so many records in you uacreg table?\r\n\r\nAfter starting kamailio, but before the first error log message containing `no more shm memory`, do you have other error messages in the logs (especially from tm or uac modules)?\r\n\r\nAny reason you are running kamailio printing logs to stderror (terminal) and not to syslog?"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1895#issuecomment-483654305"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1895#issuecomment-483654305",
"url": "https://github.com/kamailio/kamailio/issues/1895#issuecomment-483654305",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>