Web Hosting Talk







View Full Version : Script usage


vays
07-09-2001, 08:40 AM
I think that cpu and RAM usage are very important to everybody who runs his own dedicated.
But is it possible to measure system usage by particular script?
I mean when You use "top" command it just shows "httpd" and I can't understand which script it is.

Any Ideas?

Planet Z
07-09-2001, 02:04 PM
A lot of CGI scripts will run their own processes.

Try doing a ps aux | grep perl

vays
07-10-2001, 03:38 AM
I forgot to mention that I use PHP for my scripts

hypnos
07-10-2001, 04:51 AM
You could customize your apache log file to show how much time individual pages/scripts take to run/load.

See: http://httpd.apache.org/docs-2.0/mod/mod_log_config.html#formats

"%...T: The time taken to serve the request, in seconds."

This could point out scripts that are taking a long time to run, and that might show you some resource hogs. Just an idea. There's got to be a better way ;)

hypnos