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?
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?