Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : Unable to allocate shared memory segment of 134217728 bytes: mmap:



Threaded Mode | Print  

 Unable to allocate shared memory segment of 134217728 bytes: mmap:, Cannot allocate memory (12) (4 Replies, Read 31969 times)
andreszs
Group: Member
Post Group: Newbie
Posts: 18
Status:
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!
IP: --   

Unable to allocate shared memory segment of 134217728 bytes: mmap:
wolke
Group: NOC
Post Group: Elite Member
Posts: 437
Status:
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
IP: --   

Unable to allocate shared memory segment of 134217728 bytes: mmap:
vasu
Group: Member
Post Group: Newbie
Posts: 42
Status:
Hi andreszs,

is your issue resolved?

Let us know.
IP: --   

Unable to allocate shared memory segment of 134217728 bytes: mmap:
andreszs
Group: Member
Post Group: Newbie
Posts: 18
Status:
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.
IP: --   

Unable to allocate shared memory segment of 134217728 bytes: mmap:
vasu
Group: Member
Post Group: Newbie
Posts: 42
Status:
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.
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 10, 2024, 9:05 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.047