Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controlling CPU Usage?

Status
Not open for further replies.

maddruid

Programmer
Mar 31, 2006
8
US
I currently have a vbscript that runs nightly to compress logs (with bzip2) and move them from one drive to another with more space. This runs on twenty servers every night at about 2:00 am. Each of these servers is monitored in Microsoft Operations Manager. Recently, the size of log files has increased and this has caused the CPU to spike for 10 - 15 minutes when the files are being moved. bzip2 has an internal cpu throttle that keeps it from using more than 20% of the cpu (the percentage is from memory, so it may be inaccurate) but I have been unable to find anything like it in vbscript. Obviously, this CPU spike is picked up by MOM and then I get paged.

My first instinct was to move the scheduling around so I don't get paged in the middle of the night, but I was wondering if there was any way to throttle the cpu usage on a filesystemobject when using the movefile method. Does anyone know if this is possible?
 
I don't understand why you sent me this link. It's a whitepaper on monitoring. I'm trying to keep the CPU from spiking when I do a file copy using the FileSystemObject in vbscript. I read through the whitepaper anyway just to make sure I wasn't missing anything, but I didn't see anything about throttling the CPU when you copy a file. This is not an ASP page. It's a vbscript that moves log files. Some of the files are IIS logs, but that's the only connection I can make to this doc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top