Knowledgebase

Comparing Apache Status & Tips

Posted by mofolo, 06-28-2011, 11:40 PM
Hey there. I've noticed that a lot of my users are constantly emailing me about slow server response times. I took at look at my Apache status and noticed this: I looked at that and compared it to Apache Status here on Apache.org: Here is my HTTPD.conf: What's your Apache speed per second/request? Is this a sign that Apache is throttling download sleep? Also: I'm using Pingdom/WebPageTest.org to test my website's speed. On average it takes 4seconds to connect to the website - which is bad in comparison to the few milli-seconds it takes for google to connect. Here is a typical pingdom chart for my website: (See attachment) Any tips would be helpful. Thank you. Attached Thumbnails   Last edited by mofolo; 06-28-2011 at 11:48 PM.

Posted by mofolo, 06-28-2011, 11:58 PM
Sorry MaxRequestsPerChild is 1300 NOT 130.

Posted by Dexqt, 06-29-2011, 02:12 AM
Depending on what your server is serving, mostly static, dynamic, database intensive content you may need to look at alternative options such as litespeed in replace of Apache, I've worked with litespeed and load balancing high demand websites and I must say litespeed does a flawless job of achieving this. I believe cPanel's Apache config defaults to something along these lines; Start Servers: 5 Minimum Spare Servers: 5 Maximum Spare Servers: 10 Server Limit: 256 Max Clients: 150 Max Requests Per Child: 10000 Keep-Alive: Off Keep-Alive Timeout: 5 Max Keep-Alive Requests: 100 Timeout: 300 Again as I mentioned, we're unaware of what sort of content you're serving so those values may or may not help you at all.

Posted by m4rc3, 06-29-2011, 05:19 AM
would be nice to know what kind of hardware you've got there but reduce the timeout to something more reasonable like 30.

Posted by mofolo, 06-29-2011, 07:14 AM
I found the problem. I've disabled CSF - and now the server is running lightning fast. I think the way CSF was configured was blocking a lot of connections, and because the website is so heavily database driven, it required a lot of connections. Do you think it is safe to run a web server without CSF?

Posted by TimC, 06-29-2011, 07:18 AM
A firewall is an absolute necessity. Rather than sweep the problem under the carpet, I'd advise you to diagnose the issue. Here's a starting point Turn CSF on and run the following in simultaneous terminal windows: tail -f /var/log/lfd.log tail -f /var/log/messages

Posted by cptechie, 06-29-2011, 07:21 AM
Hello, A firewall is a must in the production server. If you thinks firewall is blocking the connections, find the reasons for that block and configure the firewall according to that.

Posted by mofolo, 06-29-2011, 06:04 PM
Thanks for the reply. I see nothing that strikes me as odd. Although, my IP tables have huge amounts of entries in respect to "DOS Attacks" I believe my CT_LIMIT was set to 30, that's the reason why. Now it has been changed to 300. I've cleared my IP Tables to see if that was the problem. Still, Pingdom is still showing slow/no responses. Last edited by mofolo; 06-29-2011 at 06:08 PM.

Posted by mofolo, 06-30-2011, 03:18 AM
I did get this error however: Is this significant?

Posted by mofolo, 06-30-2011, 03:28 AM
Found a related thread on WHT: Sure enough, when I turned off PT_deleted and SysFlood the site started to perform again!

Posted by cptechie, 06-30-2011, 04:10 AM
Hello, You need to enable the module xt_connlimit for proper working of CSF. If you are in a VPS, you need to contact your host for enabling this module from Node.

Posted by mofolo, 06-30-2011, 06:09 AM
I contacted my Hosting, the replied with:

Posted by cptechie, 06-30-2011, 06:11 AM
Hello, Yes, it can be enabled only from Node. CSF will work but some functions of CSF which is related to this module won't work.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read


Language:

Client Login

Email

Password

Remember Me

Search