LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-30-2008, 12:28 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Question Apache Service in Top


I noticed that on my Debian email server (Postfix) - my Apache has a lot of entries listed in htop for some strange reason. They all seem to have unique PID's and are identical in resource usage. Everything but the PID is identical so I am wondering what is going on and why so many instances of Apache on my server? Can anyone please explain what is going on based on the screenshot?

Link
 
Old 07-30-2008, 12:32 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Apache will start several httpd processes to listen and take incoming requests. You can control the number of them in your httpd.conf configuration file.
 
Old 07-30-2008, 12:48 PM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Quote:
Originally Posted by trickykid View Post
Apache will start several httpd processes to listen and take incoming requests. You can control the number of them in your httpd.conf configuration file.
OK so you're saying that this is normal behavior of Apache in Linux. If I reduce the # of sessions it opens, how do I know I wont negatively impacting the performance of the server?
 
Old 07-30-2008, 02:21 PM   #4
rodeoclown
Member
 
Registered: Feb 2003
Posts: 44

Rep: Reputation: 15
Quote:
Originally Posted by Carlwill View Post
OK so you're saying that this is normal behavior of Apache in Linux. If I reduce the # of sessions it opens, how do I know I wont negatively impacting the performance of the server?
Sorry, forced to use my alter ego on the forums for the time being.

Anyways, it's just all a matter of usage of the server itself. From the looks of your link, most of those look like they got spawned due to more incoming requests. The nice thing about apache is you can set a minimum number of servers to start with and then a max number. Keep them reasonable and adjust when necessary.

You can also benchmark your apache server with the ab command that comes with apache. If you have an idea of peak usage time, test it and see how it performs. If it's miserable response times, tweak and adjust and test again.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you register Apache as a service on RH 9? Thaidog Linux - Software 1 03-18-2006 06:34 AM
Using Apache to relay service Gibsonist Linux - Networking 0 12-08-2005 03:41 AM
Apache: Implementing a protocol on top of HTTP tux_addicted Programming 1 08-01-2005 08:58 AM
Apache Service BizHat.com *BSD 7 02-09-2005 11:36 AM
apache service precioso77 Linux - Software 6 04-21-2003 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration