[geeks] Staring apache with "nice"?

Geoffrey S. Mendelson gsm at mendelson.com
Tue Dec 5 13:00:15 CST 2006


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. You may have better luck tweaking
the config file. 

In /etc/apache/httpd.conf

Set: 

	StartServers         
	MinSpareServers      
	MaxSpareServers      
	MaxClients           
	MaxRequestsPerChild  

To relatively low numbers.

Geoff.

-- 
Geoffrey S. Mendelson, Jerusalem, Israel gsm at mendelson.com  N3OWJ/4X1GM
IL Voice: (07)-7424-1667  Fax ONLY: 972-2-648-1443 U.S. Voice: 1-215-821-1838 
Visit my 'blog at http://geoffstechno.livejournal.com/



More information about the geeks mailing list