Hi!
I am experiencing an issue with Asterisk’s memory usage. Initially, Asterisk consumes around 35MB, but after making some calls using sipp, the memory usage increases and gets stuck at around 105MB, without decreasing over time.
Environment:
- A custom Docker image that compiles asterisk 22 directly from the repository, using Debian 12-slim as the base image.
- A sipp launching 2000 calls, 100 simultaneous anonimous call.
pjsip.conf:
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060
[anonymous]
type=endpoint
context=from-internal
disallow=all
allow=ulaw
extensions.conf:
[default]
include => from-internal
[from-internal]
exten => 123,1,Answer()
same => n,Hangup
modules.conf:
[modules]
autoload = no
load = app_system.so
load = res_sorcery_astdb.so
load = res_sorcery_config.so
load = res_sorcery_memory.so
load = res_sorcery_realtime.so
load = chan_pjsip.so
load = res_musiconhold.so
load = res_pjproject.so
load = res_pjsip_sdp_rtp.so
load = res_pjsip_pubsub.so
load = res_pjsip_session.so
load = res_pjsip.so
load = res_rtp_asterisk.so
load = res_pjsip_endpoint_identifier_anonymous.so
load = pbx_config.so
(Note: I’ve tried removing unnecessary modules in case one of them is causing the issue, leaving only this minimal set. The memory problem also occurs with the default modules configuration.)
It looks like there are no stuck calls in the system:
CLI> core show calls
0 active calls
2000 calls processed
Are there any known issues related to this topic?
Could using Asterisk inside a Docker container be causing this problem?
Thanks in advance!