[asterisk-bugs] [JIRA] (ASTERISK-28073) asterisk memory leak

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Tue Sep 25 13:02:54 CDT 2018


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

Richard Mudgett updated ASTERISK-28073:
---------------------------------------

    Description: 
then i try to use scheme:
{noformat}
asterisk --> cel_custom(event flow) --> FIFO (pipe) --> perl parcer(listen fifo) --> db.
{noformat}
i,m detected asterisk memory leak.
my cel_custom.conf:
{noformat}
[mappings]

cel => {"type":${CSV_QUOTE(${eventtype})},"time":${CSV_QUOTE(${eventtime})},"toExten":${CSV_QUOTE(${CHANNEL(exten)})},"channame":${CSV_QUOTE(${CHANNEL(channame)})},"data":${CSV_QUOTE(${CHANNEL(appdata)})},"uniqueid":${CSV_QUOTE(${CHANNEL(uniqueid)})},"linkedid":${CSV_QUOTE(${CHANNEL(linkedid)})},"peer":${CSV_QUOTE(${BRIDGEPEER})}}
{noformat}
in the my directory CEL (/usr/local/asterisk-main/var/log/asterisk/cel-custom/):
"mkfifo cel"  -- (shell command in linux)
after a few hours of work:
top shell command in linux show this:
{noformat}
...
6565 ast       20   0 7000660 4,784g  21860 S   5,3 30,5  84:33.44 asterisk 
...
{noformat}
i,m using GRAFANA tool for monitoring free memory:
during about 7 hours asterisk "eat" about 3 GB RAM. 
this can continue until OOM killer terminate asterisk process.


  was:
then i try to use scheme:

asterisk --> cel_custom(event flow) --> FIFO (pipe) --> perl parcer(listen fifo) --> db.

i,m detected asterisk memory leak.
my cel_custom.conf:

[mappings]

cel => {"type":${CSV_QUOTE(${eventtype})},"time":${CSV_QUOTE(${eventtime})},"toExten":${CSV_QUOTE(${CHANNEL(exten)})},"channame":${CSV_QUOTE(${CHANNEL(channame)})},"data":${CSV_QUOTE(${CHANNEL(appdata)})},"uniqueid":${CSV_QUOTE(${CHANNEL(uniqueid)})},"linkedid":${CSV_QUOTE(${CHANNEL(linkedid)})},"peer":${CSV_QUOTE(${BRIDGEPEER})}}

in the my directory CEL (/usr/local/asterisk-main/var/log/asterisk/cel-custom/):
"mkfifo cel"  -- (shell command in linux)
after a few hours of work:
top shell command in linux show this:
...
6565 ast       20   0 7000660 4,784g  21860 S   5,3 30,5  84:33.44 asterisk 
...

i,m using GRAFANA tool for monitoring free memory:
during about 7 hours asterisk "eat" about 3 GB RAM. 
this can continue until OOM killer terminate asterisk process.




> asterisk memory leak
> --------------------
>
>                 Key: ASTERISK-28073
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28073
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: CEL/cel_custom
>    Affects Versions: 13.23.0
>         Environment: OS: gentoo linux x64, core: 4.9.76
> Intel(R) Xeon(R) CPU E3-1220 V2 @ 3.10GHz GenuineIntel GNU/Linux, 16 Gb RAM, asterisk, installed in custom dir: /usr/local/asterisk-main
>            Reporter: Sergey
>            Assignee: Sergey
>
> then i try to use scheme:
> {noformat}
> asterisk --> cel_custom(event flow) --> FIFO (pipe) --> perl parcer(listen fifo) --> db.
> {noformat}
> i,m detected asterisk memory leak.
> my cel_custom.conf:
> {noformat}
> [mappings]
> cel => {"type":${CSV_QUOTE(${eventtype})},"time":${CSV_QUOTE(${eventtime})},"toExten":${CSV_QUOTE(${CHANNEL(exten)})},"channame":${CSV_QUOTE(${CHANNEL(channame)})},"data":${CSV_QUOTE(${CHANNEL(appdata)})},"uniqueid":${CSV_QUOTE(${CHANNEL(uniqueid)})},"linkedid":${CSV_QUOTE(${CHANNEL(linkedid)})},"peer":${CSV_QUOTE(${BRIDGEPEER})}}
> {noformat}
> in the my directory CEL (/usr/local/asterisk-main/var/log/asterisk/cel-custom/):
> "mkfifo cel"  -- (shell command in linux)
> after a few hours of work:
> top shell command in linux show this:
> {noformat}
> ...
> 6565 ast       20   0 7000660 4,784g  21860 S   5,3 30,5  84:33.44 asterisk 
> ...
> {noformat}
> i,m using GRAFANA tool for monitoring free memory:
> during about 7 hours asterisk "eat" about 3 GB RAM. 
> this can continue until OOM killer terminate asterisk process.



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



More information about the asterisk-bugs mailing list