You deployed the new server and your code, but you want to check how it will perform under high CPU load? So here comes STRESS utility. It will create load on the server so you can observe performance under stress.
Stress Utility is workload generator tool designed to increase load on the server so you can properly measure the performance of your application under high CPU, I/O, and disk stress.
Installing Stress Utility
On Centos servers you can just run the command below.
[root@server ~]# yum install stress -y
On Ubuntu it goes with
[root@server ~]# apt-get install stress
Now you spawn 8 workers on the stress utility to create load.
Let’s see current load on the server.
[root@server ~]# uptime 04:12:18 up 182 days, 13:45, 1 user, load average: 3.27, 0.94, 0.36
Now lets run stress command using the command below.
[root@server ~]# stress -c 8 &  13255 [root@server ~]# stress: info:  dispatching hogs: 8 cpu, 0 io, 0 vm, 0 hdd
Wait for few seconds and see it has started generating load.
[root@server ~]# uptime 04:13:59 up 182 days, 13:47, 1 user, load average: 8.66, 3.45, 1.32