<p></p>
<h3>Description</h3>
<p>Hi,<br>
I'm running some tests on top of Kamailio 5.3.5 (x86_64/linux) 9e70e8  on CentOS with ~1.2k registered endpoints. While I try to dump registered contacts it fails:</p>
<pre><code>[root@v0p1356-dispatcher kamailio]# kamcmd ul.dump
error: 500 - Internal error creating aor struct
[root@v0p1356-dispatcher kamailio]# kamcmd ul.db_contacts location
1172
[root@v0p1356-dispatcher kamailio]#
</code></pre>
<h3>Troubleshooting</h3>
<p>I'm running kamailio with -m 512 -M 128 and like suggested in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="318627389" data-permission-text="Title is private" data-url="https://github.com/kamailio/kamailio/issues/1513" data-hovercard-type="issue" data-hovercard-url="/kamailio/kamailio/issues/1513/hovercard" href="https://github.com/kamailio/kamailio/issues/1513">#1513</a> I've tuned ctl module settings but no luck</p>
<pre><code>modparam("ctl", "binrpc_buffer_size", 4096)
modparam("ctl", "binrpc_max_body_size", 16)

</code></pre>
<h4>Reproduction</h4>
<p>send >1000 registrations</p>
<h4>Log Messages</h4>
<pre><code>Jul 28 15:12:13 localhost /usr/sbin/kamailio[55179]: ERROR: ctl [binrpc_run.c:1094]: rpc_struct_add(): failed to add attribute-value ({)
</code></pre>
<h3>Additional Information</h3>
<pre><code>[root@v0p1356-dispatcher kamailio]# kamailio  -v
version: kamailio 5.3.5 (x86_64/linux) 9e70e8
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 9e70e8
compiled on 14:35:46 Jun 22 2020 with gcc 4.8.5
[root@v0p1356-dispatcher kamailio]#

</code></pre>
<ul>
<li><strong>Operating System</strong>:</li>
</ul>
<pre><code>  Operating System: CentOS Linux 7 (Core)
       CPE OS Name: cpe:/o:centos:centos:7
            Kernel: Linux 3.10.0-1127.el7.x86_64
      Architecture: x86-64
</code></pre>

<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/2412">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJQISZMBJGCUPUGPHTR53FNNANCNFSM4PKQILPQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZISSITEWECYVYMN4SDR53FNNA5CNFSM4PKQILP2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4J6CSRIQ.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/2412",
"url": "https://github.com/kamailio/kamailio/issues/2412",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>