PDA

View Full Version : Limit How Much Of The CPU a Site Can Use?


Devil_Dude_Lod
2003-08-24, 21:56 PM
Anyone know how to limit how much cpu a site can use?

Tino Didriksen
2003-08-24, 22:07 PM
Here's what to search for: http://www.google.com/search?q=cpu+quota+linux

I can't help much more, since I've never done it, but Google may have something.

Devil_Dude_Lod
2003-08-24, 22:58 PM
Ok i did manage to find something

> Is there anyway I can assign quota to user for CPU and Memory usage?
cat /etc/security/limits.conf


in root i entered

/etc/security/limits.conf
bash: /etc/security/limits.conf: Permission denied

help?

charlie
2003-08-25, 00:11 AM
you must mean something like...

vi /etc/security/limits.conf

or

pico /etc/security/limits.conf

it's a configuration text file, not an executable program. you need to use a text editor to edit the file. you may need to restart services after modifying any config file.

Viruseater
2003-08-25, 01:23 AM
I find that webmin makes a lot of this stuff VERY simple, and also provides a good backdoor access that lets you work around things.

www.webmin.com

One thing I'll say is be very careful using it though with appliance software. I ONLY use it for things I need to do that the appliance doesn't offer.

You can restrict the CPU usage, RAM usage and Threads very easily for each web site using webmin.