Softaculous


Topic : Unable to allocate shared memory segment of 134217728 bytes: mmap:


Posted By: andreszs on October 6, 2021, 6:16 pm
Hi, I'm suddenly getting Internal Server Error 500 99% of the time, and the Apache logs say:
[Wed Oct 06 17:55:13 2021] [error] [client 108.162.241.49] Wed Oct  6 17:55:13 2021 (16891): , referer: http://...
[Wed Oct 06 17:55:13 2021] [error] [client 108.162.241.49] Fatal Error , referer: http://...
[Wed Oct 06 17:55:13 2021] [error] [client 108.162.241.49] Unable to allocate shared memory segment of 134217728 bytes: mmap: Cannot allocate memory (12), referer: http://...
[Wed Oct 06 17:55:13 2021] [error] [client 108.162.241.49] , referer: http://...
[Wed Oct 06 17:55:13 2021] [error] [client 108.162.241.49] Premature end of script headers: ajax.php, referer: http://...
The server is a VPS by Hostinger, any suggestions will be welcome, thanks!

Posted By: wolke on October 6, 2021, 7:37 pm | Post: 1
You may need to change maximum shared memory segment size to 128MB

Try this at commandline:

Code
echo "134217728" >/proc/sys/kernel/shmall
echo "134217728" >/proc/sys/kernel/shmmax


This setting won´t survive a reboot, but you can test if it works.

To make this change constant, set

Code
kernel.shmall=134217728
kernel.shmmax=134217728


in /etc/sysctl.conf and make a full reboot.




Edited by wolke : October 6, 2021, 7:42 pm

Posted By: vasu on November 23, 2021, 1:49 pm | Post: 2
Hi andreszs,

is your issue resolved?

Let us know.

Posted By: andreszs on November 23, 2021, 7:09 pm | Post: 3
Quote From : vasu November 23, 2021, 1:49 pm
Hi andreszs,

is your issue resolved?

Let us know.

The issue was resolved by the Softaculous support after opening a support ticket.

Posted By: vasu on November 24, 2021, 5:24 am | Post: 4
Hi andreszs,

>>The issue was resolved by the Softaculous support after opening a support ticket.
Glad to know that your issue is resolved, let us know if you need any further assistance.

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.