Pre-sale questions

Discussion in 'Install/Configuration' started by LiteSpeeder, Nov 30, 2008.

  1. LiteSpeeder

    LiteSpeeder New Member

    Hello,

    I've just practically meet LiteSpeed Web Server and i must confess that i'm very impressed. The installation and the cPanel integration were quite easy. I've been running the lsws since yesterday and the server load averages are 2-3 times lower. But of course i have a few questions before buying a license.

    1-) I've tried many things to activate gzip compression for the dynamic content but it never worked. It's working for static content and the custom compressible types i specified. I test it with this tool http://whatsmyip.org/mod_gzip_test/ I have mod_deflate for my apache 2.2 and it's working great with the lines below added to the top of my httpd.conf:

    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript

    What's are the equivalent settings for lsws? Please specify them one-by-one for the Tuning screen.



    2-) I'm currently running lsws 2-cpu 15 day trial version. When i switch to Apache 2.2, the server load averages are about 8.00. They are between 3.00-3.80 for lsws. If i buy a 4-cpu license, can we think they will drop to 1.50-2.00? This is my web server (apache-PHP), nothing else is using the resources. Server hardware:
    Dual Quad Core Cpu (E5335 @ 2.00GHz)
    8 GB RAM, 10K RPM, 73GBx2 HDD, RAID1

    I think 4-cpu license will work for me. I read some posts that i don't need to buy a license for each cpu core (8 cores total for me) but i want to test it first. The question is can you please provide me a test license for 4-cpu core? (at least for 3 days or less)
    Check the server snapshots below:
    http://img204.imageshack.us/img204/9053/snap3vj8.png
    http://img411.imageshack.us/img411/1473/86833028lr7.png



    3-)I've been running apache with the settings below (i don't want to switch to load balanced environment since i had bad experiences with it in the past, 1 dual quad core web server + lsws installed and 1 quad core db server will be enough for me i guess):

    KeepAlive On
    MaxKeepAliveRequests 100
    KeepAliveTimeout 1
    ServerLimit 1024
    StartServers 15
    MinSpareServers 15
    MaxSpareServers 20
    MaxClients 512
    MaxRequestsPerChild 1000

    What are the optimized values for lsws?

    4-) What are the optimized values for the security (ddos)? My site is a big one (most active section is the forum) with 200k+ daily unique hits. Google spider is crawling 250k-300k pages in a day. I don't want to block or limit it. So can you please show me some recommended values for these settings?

    5-) I can easily see 404 file not found error messages in apache's error log at cpanel. I think lsws' logging system is a little more complicated. How can i only display 404 file not found messages and fix the broken images, links etc at lsws?

    6-) Too many "The size of dynamic response body is over the limit, abort!" warnings, which option i should change?

    That's all for now.

    Thank you :)
    Last edited: Nov 30, 2008
  2. mistwang

    mistwang LiteSpeed Staff

    http://www.litespeedtech.com/docs/webserver/config/tuning/#enableGzipCompress

    All Gzip related configures are there. Those apache directive has no effect on Litespeed.



    The easiest way is order a monthly license, we have 30 day money back guarantee. If you want to upgrade to owned license, we will use the monthly payment as credit towards that.
    I think 4-CPU license wont lower load to 1.8-2.0, but you can give a try.

    Our default value should be pretty good.

    start from
    http://www.litespeedtech.com/how-tos.html#qa_dos

    We do not log all 404 file in the error log due to Ruby On Rail support. Right now, use a log analyzer or just scan access log should work.

    http://www.litespeedtech.com/docs/webserver/config/tuning/#maxDynRespSize
  3. LiteSpeeder

    LiteSpeeder New Member

  4. mistwang

    mistwang LiteSpeed Staff

    Yes, only install the license key then restart LiteSpeed, Select "upgrade" from installer, it will do that.

    The value of DDoS setting in the howto is pretty good.
    Max Dynamic response size is depends on your application, you can set it any value you want.
  5. LiteSpeeder

    LiteSpeeder New Member

    What does that warning mean actually? Does it close the connection?

    Btw, i'm running 4-cpu license version now and i didn't notice any performance improvements.

    vbulletin with 5850 online users (15 minutes cookie timeout), server load averages: 4.80

    What's the main difference betweeen 2-cpu and 4-cpu license versions? I mean how may it effect the vbulletin serving?

    I see these errors:
    ERROR No listener is available, stop server!
    Last edited: Nov 30, 2008
  6. mistwang

    mistwang LiteSpeed Staff

    The warning means that PHP generate a response body over the limit.
    It will cut off the response body, whether to close the connection is based on the "Keep Alive" setting.

    You need to create a Listener with IP:80 for your web site, then set the "Binding" to all 4 processes. This way, all four lshttpd process will be actively serving that web site, otherwise, only one process is active.
  7. LiteSpeeder

    LiteSpeeder New Member

    I got it.

    Double of the stats below is my peak time:
    http://img83.imageshack.us/img83/2901/snap1kw3.png

    So the extra cpu core only provides more connection capacity?

    I think 4-cpu license is unnecessary for me (8000 max connections, 7758 free). I only run 1 web site via this box. Do you it's the best option for me to cancel my 4-cpu license and buy an owned 1-cpu license?
    Last edited: Nov 30, 2008
  8. mistwang

    mistwang LiteSpeed Staff

    More CPU core is better for serving static content and HTTPS traffic. Also better anti-DDoS capabilities.

    It is up-to you. If you want to go ahead with the owned 1-CPU license, I will cancel your 4-CPU license and apply credit to the owned license.
  9. LiteSpeeder

    LiteSpeeder New Member

    If i disable binding to three cores, can i simulate 1 cpu core version? Is it the same thing?
  10. mistwang

    mistwang LiteSpeed Staff

    yes, it is the same thing.
  11. LiteSpeeder

    LiteSpeeder New Member

    Ok. I'm ordering owned 1-CPU license now.
  12. mistwang

    mistwang LiteSpeed Staff

    Let me add the package with credit applied for you.
  13. mistwang

    mistwang LiteSpeed Staff

    You can login to your account and pay the invoice.
  14. LiteSpeeder

    LiteSpeeder New Member

    Ok, thanks. I'll do it in a few hours.

    I have a problem.

    "Fatal error: Out of memory (allocated 19398656) (tried to allocate 4881 bytes)..."

    I checked my php settings, phpinfo says i have these settings active:
    max_execution_time = 60
    max_input_time = 60
    memory_limit = 128M

    Something else must be limiting it. How can i fix this?
  15. LiteSpeeder

    LiteSpeeder New Member

    I'm stuck on this.
  16. anewday

    anewday Moderator

    It's probably due to the Memory Soft and Hard Limit values in the lsphp5 settings.
    Last edited: Nov 30, 2008
  17. LiteSpeeder

    LiteSpeeder New Member

    Memory Soft Limit (bytes): 250M
    Memory Hard Limit (bytes): 300M
  18. anewday

    anewday Moderator

    What are the values for Process Soft and Hard Limit?
  19. LiteSpeeder

    LiteSpeeder New Member

    Both limits are set to 200
  20. mistwang

    mistwang LiteSpeed Staff

    keep increasing the limit in both php.ini and lsphp5.

Share This Page