Re: [cgiwrap-users] Proper Use of --with-rlimit-* Configuration Options
Brought to you by:
nneul
From: Neulinger, N. <nn...@ms...> - 2010-04-28 18:22:48
|
It's going to totally depend on what the users are doing and your particular system. I've seen perfectly reasonable CGI scripts spike to a hundred meg plus for split seconds. For documentation of the limits, 'man setrlimit' should give you useful information. -- Nathan ------------------------------------------------------------ Nathan Neulinger nn...@ms... Missouri S&T Information Technology (573) 612-1412 System Administrator - Principal KD0DMH > -----Original Message----- > From: Tim Gustafson [mailto:tj...@so...] > Sent: Wednesday, April 28, 2010 12:54 PM > To: cgi...@li... > Subject: [cgiwrap-users] Proper Use of --with-rlimit-* Configuration > Options > > Hi, > > I use cgiwrap to secure CGI scripts running in user's home directories > on a shared web server. I've had occasions where people have written > buggy CGI scripts that use up tons of RAM (in some cases 8GB or more) > and will run indefinitely (hours and hours) and I'd like to use the -- > with-rlimit-* options to fix that. However, I'm not all that familiar > with using the rlimit options, or using rlimit in general. > > I was wondering if anyone could recommend good settings for these: > > --with-rlimit-cpu > --with-rlimit-vmem > --with-rlimit-as > --with-rlimit-fsize > --with-rlimit-data > --with-rlimit-stack > --with-rlimit-core > --with-rlimit-rss > --with-rlimit-nproc > --with-rlimit-nofile > --with-rlimit-memlock > > I think I want --with-rlimit-cpu=30 but I really am not 100% clear on > the difference between all the different memory limits. What are some > sane numbers to use here for "average" user CGI scripts? > > Tim Gustafson > Baskin School of Engineering > UC Santa Cruz > tj...@so... > 831-459-5354 > > > ----------------------------------------------------------------------- > ------- > _______________________________________________ > cgiwrap-users mailing list > cgi...@li... > https://lists.sourceforge.net/lists/listinfo/cgiwrap-users |