Windows – How to produce high CPU load on Windows

cpu usageperformancewindows

For testing purposes I need to generate high CPU load on a Windows Server 2003.
I cannot install any software but have to make do with what Windows provides.

What would be the best way to achieve that?

Best Answer

consume.exe from the Windows Server 2003 Resource Toolkit can do this easily.

C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\x64>consume -cpu-time -time 5
Consume: Message: Time out after 5 seconds.
Consume: Message: Successfully assigned process to a job object.
Consume: Message: Attempting to start 256 threads ...
................................................................................
................................................................................
................................................................................
................
Consume: Message: Sleeping...

Uses 100% CPU time on all cores as long as it runs. It can also consume other resources (as the name implies).

Related Question