Why Multiple HTTPD in the Process

Why Multiple Apache in Process

Multiple HTTPD in the Process List

 

Check processes list

You can use any of below methods

  1. Using 'Top' command then press on 'O' , 'x' and 'Enter'
  2. ps aux | grep -i httpd
  3. ps aux |grep http| wc -l
  4. If you are running HTTPD preform then this can be normal
  5. To check if you are running preform run below command
    1. apachectl -l

 

Why more than one HTTPD in the list?

The main reason for seeing more than one Apache HTTPD running is that Apache is using forked processes to handle requests.

 

How to fix this ?

First let us agree on that this is not an error, if you believe this is eating more of your SWAP memory or causing any issues then you need to consider any of below steps:

  1. Optimize your application and find if it's using more requests than usual.
  2. Add more web-servers and run a load balancer.
  3. Add more resources (CPU, Memory) to your current web server.
  4. Add caching.
  5. Check the Minimum and Maximum Spare Servers and consider optimizing them
    1. cat /etc/httpd/conf/httpd.conf | grep -i MinSpareServers
    2. cat /etc/httpd/conf/httpd.conf | grep -i MaxSpareServers
    3. Consider reduce the number of seconds of the 'Timeout' inside the httpd.conf

Subscribe to
for video tutorials updates