httpd Service use 9GB Ram

jadmanxxx

New member
Joined
Apr 12, 2013
Messages
1
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:

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}
# ....
# ..

39090843.jpg

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 ?
 
Hello,

You might need to update your /etc/httpd/conf/extra/httpd-mpm.conf to fit your needs:

MaxClients
ServerLimit

as well as apply some additional tunning.
 
Back
Top