apche memory mangement
Hello I am here with another question
I am using apache 2.0.52 on RHEL4 installing by rpm.
By default it use prefork mpm in apache.
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 50
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>
Above is the its configuration is httpd.conf file.
now Weh apache starts it it create 8 child process.
Show by #ps aux |grep httpd
root 8327 0.0 3.5 20024 9156 ? Ss 14:54 0:00 /usr/sbin/httpd
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
apache 8330 0.0 3.6 20024 9284 ? S 14:54 0:00 /usr/sbin/httpd
apache 8331 0.0 3.6 20024 9176 ? S 14:54 0:00 /usr/sbin/httpd
apache 8332 0.0 3.6 20024 9176 ? S 14:54 0:00 /usr/sbin/httpd
apache 8333 0.0 3.6 20024 9176 ? S 14:54 0:00 /usr/sbin/httpd
apache 8334 0.0 3.6 20024 9176 ? S 14:54 0:00 /usr/sbin/httpd
apache 8335 0.0 3.6 20024 9176 ? S 14:54 0:00 /usr/sbin/httpd
apache 8336 0.0 3.6 20024 9176 ? S 14:54 0:00 /usr/sbin/httpd
apache 8337 0.0 3.6 20024 9176 ? S 14:54 0:00 /usr/sbin/httpd
I have two questions here
1- Is every child process using 9176 memory or all processes in combile ??
2-If more than 8 rquest come at a time then whether these 8 process will handle or for every new requet new child process will be created.???
|