Solved

limit a user's resource usage

Posted on 2002-04-21
2
206 Views
Last Modified: 2010-03-04
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.)

0
Comment
Question by:stanleyhuen
2 Comments
 
LVL 15

Accepted Solution

by:
samri earned 100 total points
ID: 6958700
I doesn't seems to find any resources for controlling CPU usage.  The most I can suggest is; mod_throttler which should enable you to controll bandwith usage.
 http://www.snert.com/Software/mod_throttle/

Perhaps, the cpu/mem coould be controlled at the OS level.


0
 
LVL 1

Expert Comment

by:malsoft
ID: 6985881
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
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question