Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Today, my website was down. I checked in the process list. There are so many httpd process (apache 2). It never happens before. I do not know how to solve it.
This is the result from uptime:
Quote:
17:22:49 up 1:00, 1 user, load average: 97.68, 127.49, 122.91
Its because of too many http traffic hit your webserver so investigate how such traffic hit your server. May be its because of DoS attack or do you have any ruff idea how many http request hit your server per second?
Thank you guys. Finally, I found out why httpd was overloaded. It's because there was one php script bug and one bad guy was trying to open that bug URL every second.
We experience a similar problem every so often on a Redhat box. The MaxClients limit is reached and Apache stops serving pages. Increasing the limit doesn't solve the problem, and the average number of connections when things are running smoothly is much, much lower than this setting anyway.
To hold us over, I've written a script that checks the number of httpd processes every 5-10 minutes (forget how often off the top of my head). If it gets too high, it sends out a report containing the output of top and ps and restarts Apache in order to prevent it from crashing. It seems like a crude solution, but it tends to keep the site up until the problem passes.
Quote:
Thank you guys. Finally, I found out why httpd was overloaded. It's because there was one php script bug and one bad guy was trying to open that bug URL every second.
Is it really that simple to DoS a web server? Does that mean someone could conceivably keep clicking on links on a site as fast as possible and have the server grind to a halt?
Is it really that simple to DoS a web server? Does that mean someone could conceivably keep clicking on links on a site as fast as possible and have the server grind to a halt?
Yes, it's kind of. I checked at the log and found out there were one bad guy trying to click a link (where it had that bug) every second.
Thank you guys. Finally, I found out why httpd was overloaded. It's because there was one php script bug and one bad guy was trying to open that bug URL every second.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.