homepage Welcome to WebmasterWorld Guest from 184.72.91.94
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Visit PubCon.com
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library : Charter : Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
understanding 'top' and cpu performance
is each httpd a visitor?
jamie




msg:912541
 4:36 pm on Apr 15, 2003 (gmt 0)

hi,

when i run a top command (RH 7.2 on a 2GHZ processor) i can see quite a few httpd processes. but never any more than 7 or so.

is each httpd process a visitor who is at that very moment downloading a page? or do several visitors combine into one httpd process.

most of the time the CPU use is between 1% and 4%, but i noticed this morning one httpd process at 18%. should i be alarmed?

thanks

 

marcs




msg:912542
 11:55 pm on Apr 15, 2003 (gmt 0)

A httpd process is required per web server request. If needed (not enough processes are already running), a new processed is spawned to fulfill a new request. The # of processes doesn't equal # of visitors.

most of the time the CPU use is between 1% and 4%, but i noticed this morning one httpd process at 18%. should i be alarmed?

Probably nothing to worry about. Try seeing if that httpd process has children. Often httpd processes with higher CPU usage spawned child processes to execute a script or what have you.

Do something like :

ps auxwf¦more

look for the httpd process with the higher CPU usage and see if it has child processes and if so, check what they are/do.

jamie




msg:912543
 9:04 am on Apr 16, 2003 (gmt 0)

many thanks for explanation,

i will have to delve into this a bit more. at the moment of course (murphys law) there are no resource intensive httpd processes running.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved