Answer the question
In order to leave comments, you need to log in
Optimal apache setup?
Good time of the day.
There is Apache with the following config:
<IfModule prefork.c>
StartServers 2
MinSpareServers 2
MaxSpareServers 5
ServerLimit 32
MaxClients 32
MaxRequestsPerChild 400
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild
25
MaxRequestsPerChild
0 CPU
1024 Mb RAM
top shows:
top - 22:16:38 up 1:30, 1 user, load average: 1.72, 1.60, 1.44
Tasks: 54 total, 3 running, 51 sleeping, 0 stopped, 0 zombie
Cpu(s): 6.7%us, 3.0%sy, 0.0%ni, 0.0%id, 84.3%wa, 0.0%hi, 0.0%si, 6.0
%
st : 131064k total, 0k used, 131064k free, 219164k cached
Apparently Apache does not use the server to its full potential.
Hence the questions:
1. How to determine which Apache I have - worker or prefork?
2. What parameters should be scored?
Thank you very much in advance.
Answer the question
In order to leave comments, you need to log in
1. How can I determine which Apache I have - worker or prefork?What OS? On Linux, you need to look in /etc/sysconfig/, there is a config there. In general, you can look like this:
ps aux | grep http
If there is no word 'worker', then 'prefork'. Surely prefork, it is by default, as it is more stable in most cases.2. What parameters should be scored?And here it is necessary to approach the problem empirically. If there is nothing on the server other than Apache, then look at the average size of one of your Apache processes and set
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question