[asterisk-bugs] [JIRA] (ASTERISK-26731) res_sorcery_memory_cache: memory leak on every sorcery memory cache populate

Ustinov Artem (JIRA) noreply at issues.asterisk.org
Thu Jan 19 03:12:10 CST 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-26731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ustinov Artem updated ASTERISK-26731:
-------------------------------------

    Attachment: valgrind.tar.gz

> res_sorcery_memory_cache: memory leak on every sorcery memory cache populate
> ----------------------------------------------------------------------------
>
>                 Key: ASTERISK-26731
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26731
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_sorcery_memory_cache
>    Affects Versions: 13.13.1
>         Environment:  3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02) x86_64 GNU/Linux
>            Reporter: Ustinov Artem
>         Attachments: valgrind.tar.gz
>
>
> Configured PJSIP realtime with sorcery cache (full_backend_cache=yes).
> After each 'sorcery memory cache expire/populate res_pjsip/endpoint' command or when sorcery memory cache expires extra memory consumption occur.
> I have around 6000 endpoints and each time that cache expires and sorcery repopulate it memory consumption rises about 50 mb. 
> I attached valgrind log.
> {noformat}
> Sorcery.conf
> [res_pjsip] ; Realtime PJSIP configuration wizard
> endpoint/cache=memory_cache,maximum_objects=0,expire_on_reload=no,object_lifetime_stale=0,object_lifetime_maximum=600,full_backend_cache=yes
> auth/cache=memory_cache,maximum_objects=0,expire_on_reload=no,object_lifetime_stale=0,object_lifetime_maximum=600,full_backend_cache=yes
> aor/cache=memory_cache,maximum_objects=0,expire_on_reload=no,object_lifetime_stale=0,object_lifetime_maximum=86400,full_backend_cache=yes
> endpoint=config,pjsip.conf,criteria=type=endpoint
> auth=config,pjsip.conf,criteria=type=auth
> aor=config,pjsip.conf,criteria=type=aor
> domain=config,pjsip.conf,criteria=type=domain
> endpoint=realtime,ps_endpoints
> auth=realtime,ps_auths
> aor=realtime,ps_aors
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list