Bug#966294: asterisk: memory leak with PJSIP channel
José Miguel Gonçalves
jose.goncalves at inov.pt
Sun Jul 26 03:20:32 BST 2020
Package: asterisk
Version: 1:16.2.1~dfsg-1+deb10u1
Severity: important
Dear Maintainer,
* What led up to the situation?
Executing asterisk in a system configured with around 250 VoIP phones using PJSIP, my 8 GB RAM's server rapidly (~ 2 days) rans out of memory.
The phones are configured for registring in 180 seconds, so I suspect the memory leak is due to the SIP registry process.
Another symptom that enhances my suspicion is that I see the memory allocated to the asterisk process to increase even without any calls being made.
* What exactly did you do (or not do) that was effective (or
ineffective)?
To workaround this issue I needed to restart every day the asterisk service in a cron job.
* What was the outcome of this action?
The server regains the memory lost.
-- System Information:
Debian Release: 10.4
APT prefers stable
APT policy: (990, 'stable'), (500, 'stable-updates')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-9-amd64 (SMP w/12 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=pt_PT.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages asterisk depends on:
ii adduser 3.118
ii asterisk-config 1:16.2.1~dfsg-1+deb10u1
ii asterisk-core-sounds-en 1.6.1-1
ii asterisk-modules 1:16.2.1~dfsg-1+deb10u1
ii libc6 2.28-10
ii libcap2 1:2.25-2
ii libedit2 3.1-20181209-1
ii libjansson4 2.12-1
ii libpopt0 1.16-12
ii libsqlite3-0 3.27.2-3
ii libssl1.1 1.1.1d-0+deb10u3
ii libsystemd0 245.6-1~bpo10+1
ii liburiparser1 0.9.1-1
ii libuuid1 2.33.1-0.1
ii libxml2 2.9.4+dfsg1-7+b3
ii libxslt1.1 1.1.32-2.2~deb10u1
ii lsb-base 10.2019051400
Versions of packages asterisk recommends:
pn asterisk-moh-opsound-gsm <none>
ii asterisk-voicemail [asterisk-voicemail-storage] 1:16.2.1~dfsg-1+deb10u1
ii sox 14.4.2+git20190427-1
Versions of packages asterisk suggests:
pn asterisk-dahdi <none>
pn asterisk-dev <none>
pn asterisk-doc <none>
pn asterisk-ooh323 <none>
ii asterisk-opus 13.7+20171009-2
pn asterisk-vpb <none>
-- Configuration Files:
/etc/logrotate.d/asterisk changed:
/var/log/asterisk/debug /var/log/asterisk/messages /var/log/asterisk/full /var/log/asterisk/*_log
/var/log/asterisk/freepbx.log /var/log/asterisk/freepbx_debug /var/log/asterisk/freepbx_*.log {
weekly
missingok
rotate 12
compress
sharedscripts
postrotate
/usr/sbin/invoke-rc.d asterisk logger-reload > /dev/null 2> /dev/null
endscript
}
-- no debconf information
More information about the Pkg-voip-maintainers
mailing list