I'm using netstat commands to help optimize my httpd.conf correctly.
Here are the results:
netstat -an | grep -c :80
579
netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
134 207.x.xx.134 //This was the highest result. Also this is my servers IP address
I am aware that my own IP address is returning 134 httpd connections. I have gone through the entire website's scripts and removed any css,js,php links that start with 'http://' - but I still get such a high amount of connections!
I also found this command on a forum, but have no idea what it is displaying:
ps auxww | grep httpd | wc -l
37
And here is my httpd.conf:
Timeout 30
TraceEnable Off
ServerSignature Off
ServerTokens ProductOnly
FileETag None
StartServers 2
<IfModule prefork.c>
MinSpareServers 2
MaxSpareServers 4
</IfModule>
ServerLimit 250
MaxClients 800
MaxRequestsPerChild 50
KeepAlive On
KeepAliveTimeout 1
MaxKeepAliveRequests 10
What can I alter to maximize my Hybrid Server? (Running Intel(R) Xeon(R) CPU E5620 @ 2.40GHz - 2GB Ram - MYSQL heavy).
Thanks.