Link to home
Start Free TrialLog in
Avatar of stanleyhuen
stanleyhuen

asked on

limit a user's resource usage

hi,
I am running a linux server (RH) to host some domains, using Apache 1.3.23.


Some of my clients use CGI, and they make my server very high loading at peak hrs.

Do you know any methods to limit the usage of CPU/MEM/resources of a particular user?
(I use SUEXEC for CGI programs.)

ASKER CERTIFIED SOLUTION
Avatar of samri
samri
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of malsoft
malsoft

stanleyhuen,

You might want to look into the use of login classes to restrict the amount of CPU time/memory etc that a particular user/group uses. The only problem with that is that CPU usage is defined as being time-based and not percentage-based, so a process can execute with almost 100% CPU usage, but only for a short time...

More info can be found here:

http://www.freebsd.org/handbook/users-limiting.html

http://www.freebsd.org/cgi/man.cgi?query=login.conf&sektion=5

I know it's not RH specific, but it should give you enough info to make a start.

Regards
Mark