httpd processes

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

httpd processes

Post 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?
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: httpd processes

Post by Benjamin »

If it's a live server yes.
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: httpd processes

Post by jaoudestudios »

no its my dev box
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: httpd processes

Post 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.
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: httpd processes

Post by jaoudestudios »

ok thanks, and leaving all of them running wont hurt either?
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: httpd processes

Post 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.
Post Reply