13, May 2008

how to identify which user is using a lot of CPU - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server
Topic: how to identify which user is using a lot of CPU
« previous next »
Pages: [1] Print

Author Topic: how to identify which user is using a lot of CPU  (Read 702 times)
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6236
38242 credits
Members referred : 374


It's time to use PHP5!


« on: Jun 10, 2007, 12:00:34 PM »

Hi,

I try to monitor frequently my server with "top" just to see how fast my server is after a number of tasks are running.

today I noticed that there are a lot of tasks using a lot of CPU, now I like to know which user (linux user) is using so much CPU with the service httpd.

but all tasks for the service httpd are for the user apache. how can I see for which user is the task with PID 9300 executed?

is there a more global log file? (checking all the access logs is not really fun)


Last blog : Database Management with phpMyAdmin
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7824
39879 credits
Members referred : 3



« Reply #1 on: Jun 10, 2007, 03:30:38 PM »

Do you mean which site is using more CPU?

If so there is a utility called apache monitor.

Otherwise you can install darkstat which has some live statistics that can help determine which site is using more resources.

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : Keep it Legal - Tims guide to legal notices
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6236
38242 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Jun 10, 2007, 03:46:32 PM »

Yes right I want to see which website is using a lot of CPU.

about "apache monitor", thats is a perl script right?

where to install? (there is not so much info)


Last blog : Database Management with phpMyAdmin
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7824
39879 credits
Members referred : 3



« Reply #3 on: Jun 10, 2007, 04:05:02 PM »

I can't help you more as I couldn't install it....

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : Keep it Legal - Tims guide to legal notices
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6236
38242 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: Jun 10, 2007, 04:09:45 PM »

I can't help you more as I couldn't install it....

so you advice me to use a tool that you can't use Smiley


Last blog : Database Management with phpMyAdmin
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7824
39879 credits
Members referred : 3



« Reply #5 on: Jun 10, 2007, 04:17:34 PM »

I know a lot of people using it. I just couldn't install it Smiley

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : Keep it Legal - Tims guide to legal notices
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6236
38242 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: Jun 10, 2007, 04:22:52 PM »

I know a lot of people using it. I just couldn't install it Smiley

hehe, I'm using now darkstat (apt-get) that's working fine...



Last blog : Database Management with phpMyAdmin
Community Supporter ?
OMG!I am geek
**
Gender: Male
Posts: 56
364 credits
Members referred : 0


Schwa?


« Reply #7 on: Jan 03, 2008, 03:17:34 AM »

I did some searching - but I can't seem to find it - so I'm sorry if this is not completely helpful.  I did attend a Zend conference where they talked about a module that some people add into PHP/apache.  It allows you to see the current script being executed while using 'ps'.  I don't know if that would be helpful.  I'm sorry that I can't remember more details.  I would suggest start searching for items like that.
-aaron
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6236
38242 credits
Members referred : 374


It's time to use PHP5!


« Reply #8 on: Jan 03, 2008, 07:36:16 AM »

I did some searching - but I can't seem to find it - so I'm sorry if this is not completely helpful.  I did attend a Zend conference where they talked about a module that some people add into PHP/apache.  It allows you to see the current script being executed while using 'ps'.  I don't know if that would be helpful.  I'm sorry that I can't remember more details.  I would suggest start searching for items like that.
-aaron

Ho aaron and welcome, yes right there is a module called su_php this way all tasks are exectuted by the user (the bad point is that compiling this module together with DireactAdmin is not a biginner task)

I use Apache status now to see what request is using a lot of resources and was able to indentify hackers very fast


Last blog : Database Management with phpMyAdmin
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7824
39879 credits
Members referred : 3



« Reply #9 on: Jan 05, 2008, 01:32:23 PM »

BTW darkstat is well known for the security problems it had in the past. Be careful Wink

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : Keep it Legal - Tims guide to legal notices
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6236
38242 credits
Members referred : 374


It's time to use PHP5!


« Reply #10 on: Jan 05, 2008, 01:34:27 PM »

BTW darkstat is well known for the security problems it had in the past. Be careful Wink

I run darkstat only at the moment I need it


Last blog : Database Management with phpMyAdmin
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6777
Tags : linux Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server
Topic: how to identify which user is using a lot of CPU
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 13, 2008, 06:44:29 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 34.931
Total Topics: 7.262
Total Members: 3.482
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: ondho

13 Guests, 4 Users online :

11 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.