Many time we do face the problem with the high load and we can’t stop the Apache web service at that time we can kill the Apache web service by using the following script
#!/bin/bash
for pid in `ps -C httpd|sed -e ‘s/^\ \+//g’ | grep httpd|awk ‘{print $1}’`
do
kill $pid
done