Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2010
    Location
    London
    Posts
    196

    Limit CPU for Processes

    Are there any tools that can limit CPU for certain processes? I've tried CPULIMIT but it doesn't handle multiple processes with the same name - i.e. if I limit /usr/bin/php, it will only affect one execution of PHP - even if I run CPULIMIT multiple times followed by multiple PHP scripts - same affect.

    It is just the amount of CPU PHP uses that I need limited. Using `nice` to lower the priority still causes the scripts to affect the load if all other processes are idle.

    I'm using the latest version of CentOS on a dedicated server. Any ideas please?
    DNS, Web Hosting, Virtual Private Servers, Dedicated Servers and Cloud Hosting. Based in Europe. Direct internet exchanges available. 1H return Priority Support. Call centres in 5 major countries with local rate numbers. 100% SLA. Corporate clients only.

  2. #2
    Join Date
    Sep 2010
    Location
    London
    Posts
    196
    Edit: I've found the answer using the same tool and daemon script at: http://ubuntuforums.org/showthread.php?t=992706

    DNS, Web Hosting, Virtual Private Servers, Dedicated Servers and Cloud Hosting. Based in Europe. Direct internet exchanges available. 1H return Priority Support. Call centres in 5 major countries with local rate numbers. 100% SLA. Corporate clients only.

  3. #3
    Join Date
    Jul 2010
    Location
    Chennai
    Posts
    76
    CloudLinux helps you. This allows you to limit CPU, No of process from an account.
    http://cloudlinux.com/
    Last edited by srinidhi95; 05-09-2011 at 11:29 PM. Reason: Added URL, Which I missed
    ___________
    Master Reseller Control Panel for hosting providers WHMZA
    www.whmza.com

  4. #4
    Yes, put the process into a cgroup.

Similar Threads

  1. Limit domain apache processes in plesk
    By serverx in forum Hosting Software and Control Panels
    Replies: 5
    Last Post: 09-04-2010, 11:09 AM
  2. [suPHP] limit number of processes per uid
    By robotwink in forum Hosting Security and Technology
    Replies: 8
    Last Post: 06-21-2010, 03:00 AM
  3. Limit user resource usage (n of processes)
    By inforassist in forum Hosting Security and Technology
    Replies: 3
    Last Post: 09-08-2006, 09:18 PM
  4. limit exim processes
    By almahdi in forum Hosting Security and Technology
    Replies: 2
    Last Post: 10-06-2005, 07:24 PM
  5. How to limit the amount of exim processes ??
    By thomas.smith in forum Hosting Security and Technology
    Replies: 2
    Last Post: 02-04-2005, 06:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •