How to limit your Linux CPU Utilization

Sometimes we are facing some problem due to high CPU utilizion of a application.
To solve this we need to limit the applications CPU utilization.
There is a beautiful application called “cpulimit” to solve this type of problem.

Instructions for setup
======================

Download last stable version from here or get the latest source code from Subversion repository with this command:

Then extract the source and compile with make:

Executable file name is cpulimit. You may want to copy it in /usr/bin.

Examples of use

Limit a process by PID to 55% CPU:

Launch a process by command line and limit it to 40% (in development version only!):

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
The following two tabs change content below.

Tapas Mishra

Sr. Engineer (DevOps)
Loves to work on Opensource products. Having experience on Linux environment. Knowledge on Public cloud services like AWS, Rackspace, DigitalOcean, Linode. Please don't hesitate to give a comment on the posts. Your comments are my strength.

Leave a Reply