クーロンとシェルスクリプトの組み合わせによるものです。 当然、利用に伴う常駐プロセスが増える事はありません。
#!/bin/bash
# limit is Specify the maximum number of process.
limit=400
pids=$(ps aux | grep httpd | awk '{print $2}' | sort)
process_count=$(ps aux | grep httpd | awk '{print $1}')
timestamp=$(date)
if [ $process_count -gt $limit ];
then
for pid in ${pids[@]}
do
$(kill -9 ${pid})
exit 1
done
fi