New here? Register and read our Community Rules. Accounts are approved by hand.
Problem with apache
Hi,
Today I've had a few problems with apache, wonder if anyone know's a solution:
doing netstat -an
I get lots of (hundreds) lines like this
tcp 0 0 my.ip:80 74.63.229.204:2622 SYN_RECV
I also have a lot of ESTABLISHED and TIME_WAIT connections (high in my servers port range 40000+ but on the connecting ip it's port 80 most of the time. My apache has spawned loads of processes and loads very slowly or times out.
Any help?
0
Comments
Slowloris Flood? Maybe or a HTTP Flood GET/Post
Thanks for the info. I've put squid in front of apache now which has restored the sites load time. Only problem is wordpress doesn't want to work with squid ;(
Try something easier such as Cloudflare and set the security to high, Also is this a VPS or shared hosting
Just switching to nginx can be a solution.
you can't run netstat with shared hosting
Wow. You seems to stuck in 2004? SSH is allowed on many web-hosters.
this is because apache usually opens a new thread for each couple of connections. switch to apache-mpm if you must use htaccess, or choose nginx/lighttpd
My partial solution is to put varnish in front of apache instead of squid. Still getting a bit of load but much less and sites load quickly so it'll do
Thanks for the help
Ever heard of shell access on cpanel, must not.
I must have been outdated, back then while i used sharing hosting, there was no ssh