logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache cpu 100% - need help.
Author
buttlerkid



Joined: 07 Jun 2010
Posts: 6

PostPosted: Mon 07 Jun '10 21:34    Post subject: Apache cpu 100% - need help. Reply with quote

I'm running a website, but i'm not having so many visitors, around 300-400/day. I have Comodo FIrewall installed and at apache's connections it shows me about 100 different ip addresses. Those are using the cpu.

Is somebody flooding me ?(which i doubt)

I am searching the net to find an answer, but i found nothing.

Hope somebody can figure it out .
Thank you
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7306
Location: Germany, Next to Hamburg

PostPosted: Tue 08 Jun '10 23:23    Post subject: Reply with quote

How is this 64 bit related? Doesn't your firewall block the ip's is there are too many requests? if you open the taskmanger which has the usage? The firewall or apache?
Back to top
buttlerkid



Joined: 07 Jun 2010
Posts: 6

PostPosted: Wed 09 Jun '10 14:19    Post subject: apache usage Reply with quote

The apache is having the biggest usage. I mean he's the only one having that big usage.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7306
Location: Germany, Next to Hamburg

PostPosted: Wed 09 Jun '10 15:16    Post subject: Reply with quote

James Blond wrote:
How is this 64 bit related? Doesn't your firewall block the ip's is there are too many requests?
Any further information? Which Windows do you use? Also see the questions above.
Back to top
buttlerkid



Joined: 07 Jun 2010
Posts: 6

PostPosted: Wed 09 Jun '10 18:19    Post subject: prob Reply with quote

Well let me explain how it started.
I was having my apache running on vista x64. There were no problems, but then, just from out of nowhere, the cpu usage got to 100 %.
I thought it was from vista. I installed windows 7 x64, but it was the same issue. I formatted all of my hard disk, reinstalled windows 7 of course and installed Comodo firewall too, but the problem continued.
I've changed my ip address and my subdomain to another(i have a domain and one of it's subdomains runs on my pc), the same problem.
I keep getting couple of thousand different ip addresses connecting and if I block them, new ones appear.
Tried to search the net, i found about bots, i came across over my issue on a forum, but it wasn't solved.
I tried on CentOS 5.5 too, but i need a certain apache,php and eaccelerator version for my website to run.
I keep searching each day, but i cannot find a solution to my problem.
I didn't had this issue before. I had an average 700.000 page views per day, apache was only using 20-30% of the cpu. I have a good internet and a great pc, i don't know why apache is creating me such a big problem.
I tried to use some configuration for httpd/conf which i came across on the net, but it didn't help.

That's all. Thanks for reading it and thanks for trying to help.
Back to top
buttlerkid



Joined: 07 Jun 2010
Posts: 6

PostPosted: Thu 10 Jun '10 17:49    Post subject: so? Reply with quote

Any ideas?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7306
Location: Germany, Next to Hamburg

PostPosted: Fri 11 Jun '10 10:03    Post subject: Reply with quote

Did you already analysed your log files? Is there a specific url the bots request?
Countermeasures: Do you have a router or firewall before your server or is it directly on the internet? Blocking the IPs (requests) before they reach the server is mostly a good option.
Back to top
buttlerkid



Joined: 07 Jun 2010
Posts: 6

PostPosted: Fri 11 Jun '10 12:29    Post subject: Reply with quote

Mod note: Moved all the log stuff to http://pastebin.com/3BnkswzT. Please never spam the forum with such long log files.
Back to top
buttlerkid



Joined: 07 Jun 2010
Posts: 6

PostPosted: Fri 11 Jun '10 12:30    Post subject: Reply with quote

What could this possibly be ? DDOs?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7306
Location: Germany, Next to Hamburg

PostPosted: Sat 12 Jun '10 11:26    Post subject: Reply with quote

The stuff you posted is normal activity. Nothing to see from a DOS attack. How many requests does your server handles per second? What kind of hardware do you use? Maybe it is on its limit.
Back to top


Reply to topic   Topic: Apache cpu 100% - need help. View previous topic :: View next topic
Post new topic   Forum Index -> Apache