olaf
Sun 10 June 2007, 11:00 am GMT +0200
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)
Nikolas
Sun 10 June 2007, 02:30 pm GMT +0200
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.
olaf
Sun 10 June 2007, 02:46 pm GMT +0200
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)
Nikolas
Sun 10 June 2007, 03:05 pm GMT +0200
I can't help you more as I couldn't install it....
olaf
Sun 10 June 2007, 03:09 pm GMT +0200
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 :)
Nikolas
Sun 10 June 2007, 03:17 pm GMT +0200
I know a lot of people using it. I just couldn't install it :)
olaf
Sun 10 June 2007, 03:22 pm GMT +0200
I know a lot of people using it. I just couldn't install it :)
hehe, I'm using now darkstat (apt-get) that's working fine...
aaron_s
Thu 3 January 2008, 02:17 am GMT +0100
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
olaf
Thu 3 January 2008, 06:36 am GMT +0100
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
Nikolas
Sat 5 January 2008, 12:32 pm GMT +0100
BTW darkstat is well known for the security problems it had in the past. Be careful ;)
olaf
Sat 5 January 2008, 12:34 pm GMT +0100
BTW darkstat is well known for the security problems it had in the past. Be careful ;)
I run darkstat only at the moment I need it
sirandy
Fri 20 June 2008, 08:42 pm GMT +0200
Not sure how to do it in apache. In iis you have to setup each site in application pools and then run and IIS stats tool to watch it.