Welcome to WebmasterWorld Guest from 54.144.107.83

Forum Moderators: bakedjake

Message Too Old, No Replies

understanding 'top' and cpu performance

is each httpd a visitor?

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:July 24, 2002
posts:1124
votes: 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

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

Preferred Member

10+ Year Member

joined:Jan 11, 2003
posts:442
votes: 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 auxwfmore

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.

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:July 24, 2002
posts:1124
votes: 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.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members