Solved

limit a user's resource usage

Posted on 2002-04-21
2
202 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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now