[asterisk-bugs] [JIRA] (ASTERISK-28180) ami: High memory (increased upto 15 GBs) while pushing 500 calls continuously for 7 hours

mohit dhiman (JIRA) noreply at issues.asterisk.org
Wed Dec 5 05:36:47 CST 2018


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

mohit dhiman commented on ASTERISK-28180:
-----------------------------------------

I did some debugging with MALLOC_DEBUG flag enabled at 250 calls at any instance and goes as high as 2.5 GBs of memory consumption by asterisk and it shows the {{endpoints.c}} is taking 90% of consumed memory in function {{ast_endpoint_snapshot_create}} at line no. 444 that is {{snapshot = ao2_alloc_options(...)}} but after i stopped all the call flow then memory consumption reduced from 2.5 GBs to 1.3 GBs but {{memory show summary}} doesn't indicate any file that might even nearly be consuming this much memory.

also the modification is just of Action-Id attachment to AMI Actions and Events only.

*memory increase with time:* 150 MBs to 500 MBs in 3 hours, 500 MBs to 1 GBs in 15 minutes and 1 GBs to 2.5 GBs in under 3 minutes.

> ami: High memory (increased upto 15 GBs) while pushing 500 calls continuously for 7 hours
> -----------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-28180
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28180
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/ManagerInterface
>    Affects Versions: 13.21.0
>         Environment: Centos 7.2
>            Reporter: mohit dhiman
>            Assignee: mohit dhiman
>            Severity: Minor
>              Labels: Memory, asterisk
>
> I am doing load testing by continuously pushing around 500 calls through AMI for around 6 hours, Asterisk is maintaining around 500 calls at any instance and continuously hanging up the call after few seconds.
> Scenario: 
> 500 channels are getting originated through AMI
> Asterisk then dialled call to another asterisk which answers and randomly hangup the call after few minutes.
> In around 4 hours asterisk memory started to increase and reaches upto 15 GBs in 7 hours.



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



More information about the asterisk-bugs mailing list