How to stress test AWS EC2?

1) Download and install the amazon-linux-extras library on the WebServer instance by using EC2 Instance Connect.

sudo amazon-linux-extras install epel -y

 

2) Install the CPU stress tool on the WebServer instance.

 

3) Run the stress tool on the WebServer instance by using 4 CPU workers.