[geeks] Staring apache with "nice"?
Mike Hebel
nimitz at nimitzbrood.com
Tue Dec 5 13:06:32 CST 2006
Thus spake Geoffrey S. Mendelson:
> On Tue, Dec 05, 2006 at 12:46:20PM -0600, Mike Hebel wrote:
>> Trying to keep apache from killing the Cobalt Qube 2700WG I have at home
>> but I can't seem to find where to add the "nice" command.
>>
>> Anybody got a good suggestion? This is on Debian Cobalt btw.
>
> In /etc/init.d/apache to be exact.
>
> case "$1" in
> start)
> should_start
> test_config
> echo -n "Starting web server: $NAME"
> $ENV $SSD --start --pidfile $PIDFILE --exec $DAEMON > /dev/null
> ;;
>
> Somewhere on the last line, I assume.
I tried adding it there and I get variable errors.
> You may have better luck tweaking
> the config file.
>
> In /etc/apache/httpd.conf
>
> Set:
>
> StartServers
> MinSpareServers
> MaxSpareServers
> MaxClients
> MaxRequestsPerChild
>
> To relatively low numbers.
That's a distinctly possible solution. Thanks.
Mike
----
Find your center...but keep your left hand free just in case! - Atlee
Jacobson
More information about the geeks
mailing list