Web Hosting Talk







View Full Version : a way to find out how much system resuources a script uses?


rdnpa
11-30-2003, 05:56 PM
I have a script written in ASP checking website's uptime.

i want to find out how much system resources that file uses compared to another file.. is there a way to measure that?

if there is not, than you think a script using xmlhttp object to check uptime would use a lot of resources? the script operates like 1000 - 1500 times a day..

Sheps
11-30-2003, 06:45 PM
ASP is based on vbscripts, correct?

Well, if it is, then it may or may not use alot of resources. It depends on alot of things. How effective the code is, if ASP, or the object itself use alot of resources on the machine.

IMO, uptime scripts are easy, I see them all the time in IRC channels, and they most likely do not use alot of resources.

I am in no way familiar with ASP, but I know that a "uptime" in linux just reads from a file in /proc called uptime.

rdnpa
11-30-2003, 06:53 PM
thats what i was thinking it should not use that much resources.

an yes asp is based on vbscripts.

i used that script in my website and it stopped the whole virtual server. i just want to make sure if it was caused by this script or not.

Sheps
11-30-2003, 07:02 PM
You are using IIS, right? Do you know where the uptime information is stored? If so, you could probably read it directly from the place it is stored.

lucid
11-30-2003, 07:23 PM
What does the script do? Does it check a local site or a remote one?

I have a PHP server monitoring script which I play with, it records network usage, processor load, memory usage and if the processor load is over a certain level it records what processes are running. This scripts runs every minute and it doesn't make a dent on the performance of the server.

Rob.