Page 1 of 1

httpd processes

Posted: Thu May 21, 2009 8:43 am
by jaoudestudios
If I run the command ps -elf | grep httpd...i get these results...

Code: Select all

 
0 S root      1176  1029  0  80   0 -  1011 pipe_w 14:48 pts/0    00:00:00 grep httpd
5 S root     15450     1  0  80   0 -  8315 select May17 ?        00:00:21 /usr/sbin/httpd
5 S apache   15453 15450  0  80   0 -  9005 semtim May17 ?        00:00:04 /usr/sbin/httpd
5 S apache   15454 15450  0  80   0 - 10069 semtim May17 ?        00:00:08 /usr/sbin/httpd
5 S apache   15455 15450  0  80   0 -  9624 semtim May17 ?        00:00:07 /usr/sbin/httpd
5 S apache   15456 15450  0  80   0 -  8963 semtim May17 ?        00:00:06 /usr/sbin/httpd
5 S apache   15457 15450  0  80   0 -  9091 semtim May17 ?        00:00:06 /usr/sbin/httpd
5 S apache   15458 15450  0  80   0 -  9600 semtim May17 ?        00:00:08 /usr/sbin/httpd
5 S apache   15459 15450  0  80   0 -  9572 epoll_ May17 ?        00:00:06 /usr/sbin/httpd
5 S apache   15460 15450  0  80   0 -  9583 semtim May17 ?        00:00:09 /usr/sbin/httpd
5 S apache   15461 15450  0  80   0 -  8630 semtim May17 ?        00:00:05 /usr/sbin/httpd
5 S apache   15470 15450  0  80   0 -  8770 semtim May17 ?        00:00:05 /usr/sbin/httpd
5 S apache   15471 15450  0  80   0 -  8916 semtim May17 ?        00:00:05 /usr/sbin/httpd
5 S apache   15472 15450  0  80   0 -  8717 semtim May17 ?        00:00:05 /usr/sbin/httpd
5 S apache   15473 15450  0  80   0 -  8552 semtim May17 ?        00:00:03 /usr/sbin/httpd
5 S apache   15474 15450  0  80   0 -  9542 semtim May17 ?        00:00:10 /usr/sbin/httpd
5 S apache   15475 15450  0  80   0 -  8905 semtim May17 ?        00:00:04 /usr/sbin/httpd
 
Should there be so many processes running for httpd?

Re: httpd processes

Posted: Thu May 21, 2009 8:58 am
by Benjamin
If it's a live server yes.

Re: httpd processes

Posted: Thu May 21, 2009 9:02 am
by jaoudestudios
no its my dev box

Re: httpd processes

Posted: Thu May 21, 2009 9:16 am
by Benjamin
There's a setting for the minimum number of spare apache threads. You can lower it if you want but it won't hurt anything.

Re: httpd processes

Posted: Thu May 21, 2009 9:20 am
by jaoudestudios
ok thanks, and leaving all of them running wont hurt either?

Re: httpd processes

Posted: Thu May 21, 2009 10:46 am
by Benjamin
Not unless they are eating into your available ram. If your system is starting to swap then you'll want to optimize it. Removing excess processes could be apart of that optimization.