![]() |
Litesped 3.3.24 trial and high load
First I would like to say that I heard extremely good things about litespeed web server, so I got few questions and i hope somebody can figure it out.
I run one relatively big site, 1 bil. hits per month and lately i'm experiencing attacks on my site, it is no longer syn flood but by looks of it bot net is forcing reload of my site. So i thought it is best time to try litespeed trial version to see if it can cope with my traffic. My setup: Xeon 3060 (db and web on same box) 4GB of ram Software: Cpanel 11 Apache 2.2.11 (prefork) with PHP 5.2.8 and Xcache 1.2.2 Litespeed is like i said latest trial version 3.3.24 with compiled PHP 5.2.8 and it looks like Xcache is loaded also. First thing that happened after I have loaded Litespeed was huge load 12 istead of 3 which is also high for this part of the day. http://i268.photobucket.com/albums/j.../litespeed.jpg This is picture of load when litespeed was loaded, i dont need to see that site was unresponsive, i could load forum but if i wanted to go to subsection i would get server is busy. In php info it says xcache is loaded but when i loaded forum it says xcache variables are missing so that is broken too. Please advince what can I do, I have 13 more days of trial so I would like to switch if it will work better than my current apache setup. I'm sorry because of so big post, but i'm still in shock because of load, I have expected 0.50 and i got 12. More info: Quote:
In logs i see also bunch of this: 503 Service Unavailable 2009-01-21 01:50:52.417 [NOTICE] The maximum number of file descriptor limit is set to 6000. 2009-01-21 01:50:52.417 [NOTICE] [config:server:epsr:lsphp5]'Process Limit' probably is too low, adjust the limit to: 310. 2009-01-21 01:50:52.417 [NOTICE] [config:server:epsr:lsphp4]'Process Limit' probably is too low, adjust the limit to: 310. |
Did you "Build Matching PHP Binary" in Cpanel? Maybe you can try disabling xcache temporarily. Can you post the output of top when it's high load?
Your trial can be extended if you ask mistwang (George). :) |
Can you show me your xcache configuration in php.ini?
I think the memory limit for lsphp5 may be too low, so it cause 503 errors. For single large web site, it is better disabling PHP suEXEC. Test LiteSpeed on another port with an Apache port offset, make sure xcache is working then switch to LiteSpeed from Apache. |
Quote:
I have lowered PHP, and in lsphp5 i have put higher settings: Memory Soft Limit (bytes) 450M Memory Hard Limit (bytes) 500M Process Soft Limit 400 Process Hard Limit 500 Quote:
|
Little update, my site is now under heavy load and it looks like apache works better than lite speed.
Lite speed did 40-50 transactions per sec and max load was 45, and apache 2.2.11 does 120 transactions per second and load goes up to 110. But with apache site is more responsive than with lite speed. 114 requests currently being processed, 45 idle workers 193 requests currently being processed, 0 idle workers DDos protection build in lite speed didn't helped much, i have set 1 transaction per second for dynamic and 10 for static, and load was still high and site was more or less unresponsive. |
I think something must be wrong with your setup. I never saw a case where Apache would give lower load or more responsive than litespeed.
Have you set these: http://www.litespeedtech.com/how-tos.html#qa_dos Maybe you can give root access to mistwang to look into it further. |
Quote:
Atm box is doing 70 req per sec and 40 are waiting in queue. Code:
top - 16:51:55 up 88 days, 8:42, 1 user, load average: 43.87, 45.77, 39.54 |
Quote:
http://www.litespeedtech.com/support...stent#post9660 |
Can you paste all the settings under External App > lsphp5?
You may have to tweak the environmental variables: http://www.litespeedtech.com/php-litespeed-sapi.html |
Also, in real-time stats, "External Application" Look under the WaitQ column, if it's higher than 0 then you'll need to raise your max connections.
|
| All times are GMT -7. The time now is 10:06 AM. |