Forum Moderators: phranque
under ps aux we see a lot of apache childs started on
nobody 17603 0.0 2.0 23592 20736? S 11:39 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 17604 0.0 2.0 23576 20716? S 11:40 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 17607 0.0 2.0 23576 20716? S 11:40 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 17609 0.0 2.0 23580 20732? S 11:41 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 17615 0.0 2.0 23576 20716? S 11:41 0:00 /usr/local/apache/bin/httpd -DSSL
These Childs does nothing (I think) and only uses RAM.
Any solutions how-to make them exit in 5-10 minutes automatically?
root 5912 1 0 May24? 00:00:04 /usr/sbin/httpd -D SSL
web 21814 5912 0 04:06? 00:00:08 /usr/sbin/httpd -D SSL
web 21815 5912 0 04:06? 00:00:09 /usr/sbin/httpd -D SSL
web 21816 5912 0 04:06? 00:00:09 /usr/sbin/httpd -D SSL
web 21817 5912 0 04:06? 00:00:09 /usr/sbin/httpd -D SSL
web 21977 5912 0 04:07? 00:00:08 /usr/sbin/httpd -D SSL
web 21979 5912 0 04:07? 00:00:09 /usr/sbin/httpd -D SSL
web 1697 5912 0 06:01? 00:00:09 /usr/sbin/httpd -D SSL
web 13256 5912 0 07:26? 00:00:08 /usr/sbin/httpd -D SSL
I think they're apache child processes listening on your http port, waiting for requests
If you want to change the number of spare processes etc, look for StartServers, MinSpareServers, MaxSpareServers, MaxClients and MaxRequestsPerChild in httpd.conf
I want to ask here maybe someone has really good optimizes http.conf for cPanel servers?
We are running about 1100 domains on server and had huge load - about 5.
Then I made some changes in config, set KeepAlive timeout to 2 - and here load came to 1.5 - 2.0!
So maybe someone has good httpd.conf with optimized values of other options like MaxRequestsPerChild and so on.