• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Problems with memory and settings-urgent

A

antxx

Guest
I am getting a lot of "Cannot Allocate memory", Apache dies, Plesk panel becomes blank. And that's when DNS server Bind doesn't die on me...Quite frankly i am in despair...

Let me show you some thing that was changed:

httpd.conf

Timeout 60

KeepAlive On

MaxKeepAliveRequests 90

KeepAliveTimeout 15

<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
MaxClients 150
MaxRequestsPerChild 800
</IfModule>

<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>

# cat /proc/user_beancounters
Version: 2.5
uid resource held maxheld barrier limit failcnt
4352: kmemsize 13867881 13871418 16384000 18022400 219285

this is an error i see with psa status:
/etc/init.d/psa: fork: Cannot allocate memory
/etc/init.d/psa: line 1: /bin/basename: Too many open files in system
/etc/init.d/psa: pipe error: Too many open files in system
/etc/init.d/psa: fork: Cannot allocate memory
 
Apache is giving me this:

[Mon Nov 14 12:33:22 2005] [error] (12)Cannot allocate memory: apr_poll: (listen)
[Mon Nov 14 12:33:22 2005] [error] (12)Cannot allocate memory: apr_poll: (listen)
[Mon Nov 14 12:33:30 2005] [error] (12)Cannot allocate memory: apr_poll: (listen)
[Mon Nov 14 12:33:30 2005] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Mon Nov 14 12:33:40 2005] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Mon Nov 14 12:33:51 2005] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Mon Nov 14 12:34:01 2005] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Mon Nov 14 12:34:01 2005] [error] (12)Cannot allocate memory: apr_poll: (listen)
[Mon Nov 14 12:34:01 2005] [error] make_obcallback: could not import mod_python.apache.\n
'import site' failed; use -v for traceback
ImportError: No module named mod_python.apache
[Mon Nov 14 12:34:11 2005] [alert] Child 8164 returned a Fatal error...\nApache is exiting!
[Mon Nov 14 12:34:11 2005] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Mon Nov 14 12:34:11 2005] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Mon Nov 14 12:34:11 2005] [emerg] (22)Invalid argument: couldn't grab the accept mutex
 
Back
Top