<div dir="ltr">Hello there,<div>i have stored ~200 000 registrations contacts in redis database and when kamailio starts looking for expired contacts in redis then it starts giving these errors:</div>





<p class="m_-1677538122489136965gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue";color:rgb(69,69,69)"><br></p><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><p class="m_-1677538122489136965gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue";color:rgb(69,69,69)">WARNING: PR_LOG: 123: db_redis [redis_dbase.c:1099]: db_redis_perform_query(): performing full table scan on table 'location' while performing query</p><p class="m_-1677538122489136965gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue";color:rgb(69,69,69)">WARNING: PR_LOG: 123: db_redis [redis_dbase.c:1102]: db_redis_perform_query(): <span class="m_-1677538122489136965gmail-Apple-converted-space">  </span>scan key 0 is 'expires'</p></blockquote>

<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><p class="m_-1677538122489136965gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue";color:rgb(69,69,69)"><i>WARNING: PR_LOG: 123: db_redis [redis_dbase.c:1102]: db_redis_perform_query(): <span class="m_-1677538122489136965gmail-Apple-converted-space">  </span>scan key 1 is 'expires'</i></p><p class="m_-1677538122489136965gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue";color:rgb(69,69,69)"><i style="background-color:rgb(255,255,0)">ERROR: PR_LOG: 123: <core> [core/mem/q_malloc.c:291]: qm_find_free(): qm_find_free(0x7ff80922b010, 3055920); Free fragment not found!</i></p><p class="m_-1677538122489136965gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue";color:rgb(69,69,69)"><i style="background-color:rgb(255,255,0)">ERROR: PR_LOG: 123: <core> [core/mem/q_malloc.c:425]: qm_malloc(): qm_malloc(0x7ff80922b010, 3055920) called from core: db_res.c: db_allocate_rows(183), module: core; Free fragment not found!</i></p><p class="m_-1677538122489136965gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue";color:rgb(69,69,69)"><i style="background-color:rgb(255,255,0)">ERROR: PR_LOG: 123: <core> [db_res.c:185]: db_allocate_rows(): no private memory left</i></p><div><i style="background-color:rgb(255,255,0)"><span style="color:rgb(69,69,69);font-family:"Helvetica Neue";font-size:12px">ERROR: PR_LOG: 123: db_redis [redis_dbase.c:1115]: db_redis_perform_query(): Failed to allocate memory for rows</span> </i></div></blockquote>



<div><div>I have configured the private memory to 128 MB but seems that isn't enough to handle with all these contacts. </div><div>Is the only option here increase the private memory or there is any other kind of configuration(in redis or kamailio) that i can make to avoid this? </div><div><br></div><div>Best Regards</div><div>José Seabra</div>-- <br><div dir="ltr" class="m_-1677538122489136965gmail_signature" data-smartmail="gmail_signature">Cumprimentos<div>José Seabra</div></div></div></div>