Times ago we start developing a fun tool to provoke extreme situations like out of memory or stack trace exception. Now I added a new feature to stress the CPU. I also count the used time on the CPU to see how much CPU time is ‘available’.
Using the tool is a good indicator to show how much CPU time is available for the JVM. Specially in virtual environments this information is useful. But you need to set parameters carefully. Don’t stress the CPU too long at once and use a sleep between the test cycles. So the hypervisor is not moving other VM guests out of your system and the result is valide.
Naughty: Stress the CPU for a longer time and the VM host is yours.
Install mhus-osgi-commands and use: