httpd always get my server down use up to 9GB ram see image.
now is use this script its ok but not realy the right way:
there a better way ?
like a corn job that look every 5 min if httpd have more than 3 GB it start httpd new ?
how i can make this ?
now is use this script its ok but not realy the right way:
Code:
#!/bin/bash
IPT=/sbin/iptables
# Max connection in seconds
SECONDS=45
# Max connections per IP
BLOCKCOUNT=5
# ....
# ..
# default action can be DROP or REJECT
DACTION="DROP"
$IPT -A INPUT -p tcp --dport 80 -i eth0 -m state --state NEW -m recent --set
$IPT -A INPUT -p tcp --dport 80 -i eth0 -m state --state NEW -m recent --update --seconds ${SECONDS} --hitcount ${BLOCKCOUNT} -j ${DACTION}
# ....
# ..
there a better way ?
like a corn job that look every 5 min if httpd have more than 3 GB it start httpd new ?
how i can make this ?