apache hangs cpu 100% utilization many http requests

Problems with the Windows version of XAMPP, questions, comments, and anything related.

apache hangs cpu 100% utilization many http requests

Postby eugene2006 » 19. November 2006 13:41

apache hangs cpu 100% utilization many http requests

my apache uses 100% CPU after a while.
How could I help myself?

please see PROBLEM HERE

http://advertfast.com/seo/vds1.htm

thanks!
eugene2006
 
Posts: 8
Joined: 11. September 2006 11:52

Postby Izzy » 19. November 2006 22:29

One thing I noticed is that you have 2 instances of XAMPP installed.
This is not recommended.
Perhaps try renaming the instance that you don't use to say xampp_copy or even delete the other instance.

With regard to the perported attackers, you can block them or any one, from accessing your site by grabbing their IP or domain name from the Apache error or access logs and inserting them into a .htaccess file in the www (Document Root directory where the index file is) of the site they are trying to access.

The Deny directive content in the .htaccess file may look like this:

Deny from 123.45.67.8 <- full IP
Deny from 123.45.67. <- IP range
Deny from 123.45. <- IP range
Deny from 123.45.0.0/16 <- CIDR
Deny from 10.1.0.0/255.255.0.0 <- Network mask pair
Deny from domain.tld <- blocks sub.domain.tld also

There is no limit to the number of IPs or domains you can enter into a .htacess, but it is recommended that each entry be on its own line.

http://httpd.apache.org/docs/2.2/mod/mo ... _host.html
http://httpd.apache.org/docs/2.2/mod/directives.html
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby eugene2006 » 19. November 2006 23:26

thanks mate, although you did not help me on my apache issue
you gave me an idea how to kick away spammers :)
there are couple of jerks trying to access my xampp sql db :)
eugene2006
 
Posts: 8
Joined: 11. September 2006 11:52

Postby Izzy » 19. November 2006 23:39

Have you tried the recommendation in the FAQ?
http://www.apachefriends.org/en/faq-xam ... s.html#cpu

Add it as the last line and then restart Apache after implementing it.

Have a look at implementing httpd-mpm.conf in xampp\apache\conf\extras by uncomment the mpm entry in the httpd.conf file. It has ways of upping things.

Also this high cpu usage has been attributed to a firewall issue. Check your firewall if you have one installed. You could momentarily deactivate it, check Apache's cpu usage, then reactivate it if there was no change.
http://community.apachefriends.org/f/viewtopi ... ht=cpu+100
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 94 guests