[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Limiting cgi resource usage (was Re: apache + cgi)

On Tue, Oct 19, 1999 at 02:08:02AM +0200, Pere Camps wrote:
> Nathan,
> > If you want to limit by actual clock time, you could use alarm and catch
> > the signal (I know how to do it in Perl; I'd have to stumble a bit to do
> > the same thing in C :)

This unfortunately relies on good coding practices by the user, which you
can't depend on.
> 	The problem is that I have an 'untrusted' user base I everything
> has to be implemented by the parent process or by the system itself. I
> have no way of making the users behave themselves (in fact, they misbehave
> for the fun of it) with good cgi programming.

Use cgiwrap.  You can configure exactly how much cpu they get to use.
I used it on a solaris machine that we were teaching a course on digital
media on, and magically the load problems disappeared.

Joe Block <jpb@creol.ucf.edu>
CREOL System Administrator

Social graces are the packet headers of everyday life.

Reply to: