Skip to content
WJunction - Webmaster Forum

Too many httpd process

Status
Not open for further replies.

Hello Guys

I checked process list, I found too many of httpd process .... when I run : "ps -ef | grep http | wc -l" I got : 310

that happened suddenly, few days ago number of httpd procces didnt raise 30

and I'm 90% sure there's no ddos attack, can anyone help me please ?

BTW, I run on server I7, 24Gb RAM .. my site traffic is 30k visitors daily


 

3 comments

you can run this command to show what ip is connected and how many times.
Code:
netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
Then you can use your firewall or iptables to limit the number of connections from each ip.
 
If these apache processes are actually in use consider switching to either nginx or lighttpd in the near future. This will scale better as they are not based on a threaded model like apache, so you won't run in to memory consumption issues caused by apache threads when your site grows.
 
Status
Not open for further replies.

About the author

D
Active Member · Joined
70
Messages
21
Reactions
8
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom