My Apache2 sometimes gets really slow..
Looking at the log file it's showing
server reached MaxClient settings, consider raising the MaxClients setting at the times apache is slow, so I guess that this is causing the slowdown.
After some googling I found
this.
The problem now is that I do not have
MaxClients in the /etc/apache2/httpd.conf , but I do have it in /etc/apache2/apache2.conf
In apache2.conf I have to times a MaxClients!
Code:
<IfModule prefork.c>
StartServers 50
MinSpareServers 50
MaxSpareServers 200
MaxClients 256
MaxRequestsPerChild 1
</IfModule>
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
Do I need to set both MaxClients, or do I need to add a MaxClients to the httpd.conf?
Also. The server (Debain Sarge 3.1) has 4GB of memory.. Will a MacClients of lets say 1000 be okay?
Recent comments
20 hours 15 min ago
1 day 2 hours ago
1 day 6 hours ago
1 day 8 hours ago
1 day 16 hours ago
2 days 2 hours ago
2 days 3 hours ago
2 days 6 hours ago
2 days 11 hours ago
2 days 11 hours ago