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!
Level 13 (Regus)
92 Albert St
We also have a virtual office in Wellington.
0800 000 141
PO Box 34797,
Birkenhead, Auckland 0746