CPU and memory load generation scripts

I was asked today how to generate CPU and memory load on a Windows server. I remembered from my VMware ESX training a VBScript which generated load on the CPU, but had never seen a script to stress memory. So I hacked together a VBScript which has an infinite loop which just keeps creating large arrays and filling them with data. Eventually the script bombs with an out of memory error, just what I was after!
Feel free to use the CPU loading script (thanks to VMware and Xtravirt) and memory loading script but please do NOT use them on production systems!

1 Comment

Leave a Reply

Contact Deptive

Location
Level 13 (Regus)
92 Albert St
Auckland
We also have a virtual office in Wellington.

Contact Details

0800 000 141

Postal Address
PO Box 34797,
Birkenhead, Auckland 0746