[asterisk-bugs] [JIRA] (ASTERISK-27067) ARI: Memory leak in Asterisk 14

Marin Odrljin (JIRA) noreply at issues.asterisk.org
Tue Oct 31 08:25:20 CDT 2017


    [ https://issues.asterisk.org/jira/browse/ASTERISK-27067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=239743#comment-239743 ] 

Marin Odrljin edited comment on ASTERISK-27067 at 10/31/17 8:24 AM:
--------------------------------------------------------------------

Problem still exists in Asterisk 15.0.0, but I can't get "refs.txt" less than 10 MB. Already after approx few minutes and 20-30 calls, file size is more than 30 MB. Actually, file is huge already after few minutes without any call made! I am using command "/var/lib/asterisk/scripts/refcounter.py -f /var/log/asterisk/refs -n > /tmp/refs.txt" to generate it.


was (Author: modrljin):
Problem still exists in Asterisk 15.0.0, but I can't get "refs.txt" less than 10 MB. Already after approx few minutes and 20-30 calls, file size is more than 30 MB.

> ARI: Memory leak in Asterisk 14
> -------------------------------
>
>                 Key: ASTERISK-27067
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27067
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Stasis
>    Affects Versions: 14.2.1, 14.5.0
>         Environment: Debian 8
>            Reporter: Marin Odrljin
>            Assignee: Unassigned
>         Attachments: debug_log.txt, mem1.txt, mem2.txt, mem3.txt, mem4.txt, mmlog.txt
>
>
> Starting with Asterisk 14 and usage of ARI, memory is leaking on stasis_channels.c file. In Asterisk v13.11.2 this is not happening. After I have noticed it on version 14.2.1, I've found an open issue ASTERISK-26767 and thought this is the problem (althought I don't use channelvars in ari.conf, but I do use vars in dialplan when starting ari app) and installed 14.5 but unfortunately problem didn't dissapear so it must be something else.
> In extensions.conf I have following:
> {noformat}
> [from-iax2-server-1]
> exten => _.,1,Stasis(AriStart,TRUNK=${CHANNEL(peername)})
> {noformat}
> My ARI app originates calls to other server through IAX2 and receives calls back from the same server and channel driver. I've also tried other channel drivers SIP and PJSIP and issue was still there.
> What is obvious is when I run CLI command 'memory show summary', there is large memory allocation growth in file 'stasis_channels.c'. You can see it in attached files 'memX.txt'.
> I have enabled 'MALLOC_DEBUG' but unfortunatelly there is only one line in 'mmlog' file, and I don't understand why.
> Memory is growing until Asterisk eats all available memory and then crashes!



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



More information about the asterisk-bugs mailing list