cpulimit is a simple program which attempts to limit the CPU usage of a process (expressed in percentage, not in CPU time)

Step1. Install the epel repository

yum install epel-release

Step2. Install the Cpulimit

yum install cpulimit

Step3. Run below command

top 

Note: Ctrl+c to quit

Step4. Set the CPU limit

cpulimit --pid  960 --limit 50  

LEAVE A REPLY

Please enter your comment!
Please enter your name here