| Author |
Message |
timpickup
Joined: 29 Jan 2008
Posts: 3
|
| Posted: Tue Jan 29, 2008 5:06 am Post subject: Monitoring current activity? |
|
|
Hi All,
I have a dedicated server we are using to provide shared hosting. We have apache2 on ubuntu.
Is it possible to monitor which virtual site is currently being accessed. For example I would like to be able to check when a apache2 process starts consuming a lot of resources for a period of time, which site was using it.
Thanks |
|
| Back to top |
|
kernelkrash
Joined: 30 Dec 2007
Posts: 3
|
| Posted: Tue Jan 29, 2008 3:10 pm Post subject: |
|
|
Hi,
I haven't used it, but maybe PRM (Process Resource Monitor) would fit the situation here.
http://rfxnetworks.com/prm.php
Quote: PRM monitors the process table on a given system and matches process id's with set resource limits in the config file or per-process based rules. Process id's that match or exceed the set limits are logged and killed; includes e-mail alerts, kernel logging routine and more...
Download the current release of PRM distributed under the GNU GENERAL PUBLIC LICENSE:
...
Usual disclaimer - I'm not associated or affiliated with them. I find just find their GPL products of interest and they accept donations iif you like their work. :wink:
All the best,
Chuck |
|
| Back to top |
|
timpickup
Joined: 29 Jan 2008
Posts: 3
|
| Posted: Wed Jan 30, 2008 11:01 am Post subject: |
|
|
| Thanks for the reply - not really what i need though because I want to know which web sites are being accessed, not which process is running - they will all be running as the same process |
|
| Back to top |
|
cz9qvh
Joined: 19 Jan 2008
Posts: 14
|
| Posted: Wed Jan 30, 2008 9:04 pm Post subject: |
|
|
| What i would probably do is try to find a way to add the pid of the apache process the the access.log (apache2 logfile). |
|
| Back to top |
|
timpickup
Joined: 29 Jan 2008
Posts: 3
|
| Posted: Thu Jan 31, 2008 10:02 am Post subject: |
|
|
I found a solution.. Mod_Status
Lets me view exactly what processes are currently accessing what pages on the server :D
Thanks anyway |
|
| Back to top |
|
| |