Fork failed: Cannot allocate memory

Hi,

I’m encountering a new issue today without any apparent reason.

Starting today, I began seeing the following error in the logs:

asterisk.c: Fork failed: Cannot allocate memory

After investigating, I found that this issue is related to a dependency. It only occurs when Asterisk attempts to execute external code, such as…

like
[2025-03-07 15:50:34] WARNING[59322][C-000064ae] asterisk.c: Fork failed: Cannot allocate memory
[2025-03-07 15:50:34] WARNING[59322][C-000064ae] app_system.c: Unable to execute ‘/var/lib/asterisk/bin/one_touch_record.php “PJSIP/203-00005947”’

or

[2025-03-07 09:25:59] WARNING[50799][C-00006285] asterisk.c: Fork failed: Cannot allocate memory
[2025-03-07 09:25:59] WARNING[50799][C-00006285] app_system.c: Unable to execute '/usr/bin/sendEmail …

Does anyone know what could be causing this?
Ram and CPU almost idle during a day


I recently ran into a similar issue with this, with a pretty elaborate call flow, It was on a VM and adding RAM fixed the issue.

thanks will try

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.