Create Artificial CPU Load on a Linux Server

Run this, which will cause the computer to continuously compress random data:

dd if=/dev/urandom | gzip -9 >> /dev/null &

To terminate the artificial workload, kill the running job you created.  This assumes you have no other jobs running:

kill %1

To check what jobs you have running in your shell:

jobs -l