Generate Load on Linux server for testing (Here 1..8 means 8 core cpu which can be updated as per your requirement)
for i in {1..8}; do while : ; do : ; done & done
You can also type the same with below format (Numbers depends on CPU core)
for i in 1 2 3 4 ; do while : ; do : ; done & done
Kill the above process with below command
for i in {1..8}; do kill %$i; done
for i in {1..8}; do while : ; do : ; done & done
You can also type the same with below format (Numbers depends on CPU core)
for i in 1 2 3 4 ; do while : ; do : ; done & done
Kill the above process with below command
for i in {1..8}; do kill %$i; done