[asterisk-bugs] [JIRA] (ASTERISK-23070) Memory leak when using CLI through AMI

Matt Jordan (JIRA) noreply at issues.asterisk.org
Mon Feb 24 12:52:03 CST 2014


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

Matt Jordan commented on ASTERISK-23070:
----------------------------------------

Just to double check, how are you getting the memory output?

If you're simply looking at system memory usage, there's no guarantee that the memory leak isn't in the AMI library you're using to connect to Asterisk. One way to double check that would be to compile Asterisk with MALLOC_DEBUG enabled, and then use the CLI commands it affords to check the memory usage:

{{memory show summary}} - this will show the bytes allocated by the various components
{{memory atexit list}} - show leaked memory on exit


                
> Memory leak when using CLI through AMI
> --------------------------------------
>
>                 Key: ASTERISK-23070
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23070
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/ManagerInterface
>    Affects Versions: 12.0.0
>         Environment: Centos 6.5 on Oracle VM VirtualBox
>            Reporter: Denis
>            Assignee: Matt Jordan
>            Severity: Critical
>         Attachments: extconfig.conf, manager.conf
>
>
> Calling CLI commands through AMI interface causes memory leak (sending AMI actions does not cause leak), each call CLI command through AMI increase RAM buffer by 8 kb. I am using Astxx lib (by Matthew A. Nicholson http://matt-land.com/astxx/) as AMI caller, memory usage increases when executed 
> action::command command(str_cmd);
> command(*connectionn);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list