Preventing Apache memory leaks with ulimit

#!/bin/sh

HTTPD=/usr/local/apache2/bin/httpd
CONF=/bmi/httpd-php/conf/httpd.conf

exec 2>&1
echo starting...
ulimit -v 100000
exec $HTTPD -f $CONF -D NO_DETACH

source

Leave a Reply