[asterisk-bugs] [JIRA] (ASTERISK-28523) Asterisk 16.5.0 Memory leak
Kevin Harwell (JIRA)
noreply at issues.asterisk.org
Tue Sep 17 18:01:48 CDT 2019
[ https://issues.asterisk.org/jira/browse/ASTERISK-28523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kevin Harwell updated ASTERISK-28523:
-------------------------------------
Attachment: leak_without_caching.txt
leak_caching.txt
I believe I was able to duplicate this issue. Ran two sets of tests. One with caching enabled, and the other without. I recorded the cpu/mem, and as well as MALLOC_DEBUG memory summary information at different intervals. See the following:
[^leak_caching.txt]
[^leak_without_caching.txt]
Interestingly, both show memory climbing, and not being fully released once calls were stopped. However, when sorcery caching is enabled memory seemed to climb faster. So there might be two separate leaks going on here.
It looks like there might be something holding onto format_cache objects.
> Asterisk 16.5.0 Memory leak
> ---------------------------
>
> Key: ASTERISK-28523
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-28523
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: General
> Affects Versions: 16.5.0
> Environment: Ubuntu 16.04.6 LTS / AWS C5.* instance
> Reporter: Cyril Ramière
> Assignee: Cyril Ramière
> Labels: pjsip, webrtc
> Attachments: ast_ram_24h.PNG, ast_ram_up.PNG, ast_sorcery_cache_endpoints_2000vs500.PNG, config.zip, leak_caching.txt, leak_without_caching.txt, memory_show_allocations_24h.zip, memory_show_allocations.zip, memory_show_summary_24h.txt, memory_show_summary.txt
>
>
> Hello everyone,
> I noticed that our asterisk are consuming big amounts of ram (could be more than 1.6Gb after some days/weeks depending on server load).
> We are using asterisk in realtime mode for all of our calls with MySQL (res_mysql).
> Everything is handled through the ARI interface (dialplan passes to Stasis) connected to our application.
> I attached the full configuration of our asterisk server, I just replaced sensitive information to not expose our passwords/endpoints.
> I'm currently running an instance with MALLOC_DEBUG & no optimize, it's been couple hours since I started my test and it is taking almost 300Mb for now (it will continue to grow).
> Here is the result of commands memory show.
> Best regards.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list