have a serious problem. I've got virtual server which runs Apache and two web project with a lot of visitors (about 5 hits per second). My server starts to shut down by itself. In error log I found this problem
[error] server reached MaxClients setting, consider raising the MaxClients setting [notice] caught SIGTERM, shutting down
so I search for solution to raise these numbers. I discover that this number is in two section in apache confinguration. With
/usr/sbin/httpd -l Compiled in modules: core.c prefork.c http_core.c mod_so.c
I found that my server is using prefork. So I again search for proper values and tried these
<IfModule prefork.c> StartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 1024 MaxClients 1024 MaxRequestsPerChild 4000 </IfModule>
but server still shuts down even with these values. Can anybody guide me where to look, what to read, or what to set for proper stable run of server? I will appreciate any help, folks.
The server runs Linux CentOS 5.4