I need a quick little app to max out my cpu and memory for short periods of time (1-5 minutes).

I would like to schedule this to run several times a day on an idle box to test out a possible hardware problem.

What can I do to consume all availale memory and CPU cycles without crashing the machine?

Thanks!