limit cpu load

Discussion in 'Programming/Scripts' started by payne, May 20, 2007.

  1. payne

    payne New Member

    is there any program or tool to limit cpu load per virtual host?
  2. Leszek

    Leszek New Member


    I see this is a very similar question to the one I wanted to ask yesterday so I'll just stick to this thread.Here's mine:

    I was just wondering how to limit the server's load in general,for ex.don't let the server be loaded above 80%.I mean the CPU load.
    Can it be done by PAM (/etc/security/limits.conf) ?

    And the second thing.

    Sometimes it happens that certain sites that use Php and MySQL generate high loads and slow things down.I'd like to know how to automatically turn them off so the load would get lower.
  3. payne

    payne New Member

  4. falko

    falko Super Moderator ISPConfig Developer

    Take a look at monit:
    You can tell it to stop certain services if the load gets too high. :)
  5. Leszek

    Leszek New Member

    Munin is installed on my system.I guess it will turn the service back on after the load would get lower.But how about certain sites ?

    And one more thing:limiting memory with for example:

    doesn't seem to work because it returns an error (old part of the syslog):
    Can it be done in some other way ?
  6. falko

    falko Super Moderator ISPConfig Developer

    I had that on my systems, too. The only thing that helped is to comment out the totalmem line... :(

Share This Page