ASTRAPI Posted January 10, 2011 Posted January 10, 2011 Hello I am using a cpanel server and i use the nginx plugin and nginx in front of apache with prefork. I use : StartServers 8 MinSpareServers 10 MaxSpareServers 10 ServerLimit 256 MaxClients 256 MaxRequestsPerChild 20000 KeepAlive on KeepAliveTimeout 5 MaxKeepAliveRequests 100 TimeOut 300 I use also xcache and spinx :) But i am getting many : /usr/local/apache/bin/httpd -k start -DSSL And the server is loading a lot like 20 and sometimes 200 :( If i have online 350 users per minute.... Any ideas? Thank you
Gary. Posted January 10, 2011 Posted January 10, 2011 Change the following: As a suggestion :P StartServers 5 MinSpareServers 10 MaxSpareServers 10 ServerLimit 250 MaxClients 156 MaxRequestsPerChild 10000 KeepAlive on KeepAliveTimeout 2 MaxKeepAliveRequests 100 TimeOut 100 Apache runs best on keep alive 2 and will kill / start spawns as requested
ASTRAPI Posted January 10, 2011 Author Posted January 10, 2011 Thanks i will try them :) Another recommendation for my setup so nginx will do more (i am not sure if it is true): StartServers 8 MinSpareServers 2 MaxSpareServers 5 MaxClients 80 MaxRequestsPerChild 0 What do you think? Also from where i must edit them? As i was easy apache and i was check prefork. So i must edit here? : Main >> Service Configuration >> Apache Configuration >> Global Configuration Or the prefork settings that i use from: Main >> Service Configuration >> Apache Configuration >> Include Editor - Pre VirtualHost Include Are they the same? Confused.
Gary. Posted January 10, 2011 Posted January 10, 2011 You edit:Service Configuration >> Apache Configuration >> Global Configuration Nginx believe or not can increase loads depending on the apache setup. Try disable it and use the keep alive setting I said and check the difference.
ASTRAPI Posted January 10, 2011 Author Posted January 10, 2011 Ok i add them let's see ... I was restart apache and sql also ... Sql every time that i restart it i get double or triple cpu usage...
ASTRAPI Posted January 11, 2011 Author Posted January 11, 2011 Ok the problem seems to be a scan from Acunnetix vulnerability scanner that is loading many thousands of exploits to test on the server :( And the firewall was not block it :(
Gary. Posted January 11, 2011 Posted January 11, 2011 You need to disable the functions in apache. Also disable: "allow_url_fopen" this will stop data being pulled from locations. whats your current disabled functions ?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.