CrazyEngineers
  • So a few days ago, we asked all our members whether the site was loading slower for all of you and almost everyone said yes. Upon inspection, I discovered that the pages were being served by Apache web server and not Litespeed - which we had configured. It so happened that a license issue of Litespeed caused the webserver go down and automatically switch to Apache. As a result, the pages were loading slower and the ajax requests (for example @#-Link-Snipped-# tagging) were being served with an annoying delay. Though we were unaware of the problem, we didn't have graphs or stats to discover what's the overall impact.

    Thankfully, Google Webmaster Tools (GWT) came to our rescue, exactly showing how Google viewed CrazyEngineers. Check the graph which I just obtained from GWT.

    crazyengineers

    The hills you see in the graph were created when the site was running on Apache Web Server. After correcting the license issue, the page loading times were back to normal. We've all the reasons to believe that average page loading speeds of about ~200 - 250 milliseconds is extremely fast for a site like ours (lot of content, users and images).

    LiteSpeed is a drop-alternative to Apache web server, which apparently is the most popular web server. Note that we're running a commercial version of the server as against the free software - Apache. I've heard that webmasters have noticed similar improvements with NGIX; but I've no tests or access to test machines to check it all by myself.

    If anyone of you has had a chance to play with different web servers, please let me know your observations. I'm curious to know what exactly Litespeed does differently that it gains that much of an edge over apache?
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • avii

    MemberOct 1, 2013

    I played with Yaws, <a href="https://hyber.org/" target="_blank" rel="nofollow noopener noreferrer">hyber.org</a>. Its also faster than Apache
    Are you sure? This action cannot be undone.
    Cancel
  • lsmichael

    MemberOct 7, 2013

    Howdy,

    LiteSpeed Technologies here. There are a number of differences between LiteSpeed Web Server (LSWS) and Apache. The largest difference is LSWS's <a href="https://www.litespeedtech.com/index.php/products/litespeed-web-server/features/event-driven-architecture" target="_blank" rel="nofollow noopener noreferrer">Event-Driven vs. Process-Based Web Servers - LiteSpeed Technologies</a>, which means that it handles multiple connections much better, using less CPU and RAM, and pulls out static content much faster. A page like this, using Xenforo, which is written in PHP, will also see some performance benefits from our use of #-Link-Snipped-#.

    Hope that helps clear things up. Glad LSWS is helping you so much.

    Cheers,

    Michael
    Are you sure? This action cannot be undone.
    Cancel
  • Kaustubh Katdare

    AdministratorOct 13, 2013

    @#-Link-Snipped-# - It's a pleasure to have you with us on CE. I can confirm that Litespeed handles load much better than Apache; we've had record number of simultaneous users online a few days ago and LSWS didn't acknowledge that there was load. Apache would have gone down for similar loads; as it did in the past.

    Would love to know what exactly does LSAPI offer which result into faster PHP performance?
    Are you sure? This action cannot be undone.
    Cancel
  • Anand Tamariya

    MemberOct 13, 2013

    I think the performance of LSAPI is good only for PHP because it focuses on that. Apache on the other hand is a generic webserver and works for variety of use-cases given one understands how to tune it properly.
    Are you sure? This action cannot be undone.
    Cancel
  • lsmichael

    MemberOct 14, 2013

    Howdy again.

    I think the performance of LSAPI is good only for #-Link-Snipped-# because it focuses on that.
    LSAPI provides better-than-Apache performance for PHP, Ruby, and now Python: #-Link-Snipped-#

    We do have the longest history working with PHP and PHP LSAPI has the most features of all the LSAPI modules.

    #-Link-Snipped-# on the other hand is a generic webserver and works for variety of use-cases given one understands how to tune it properly.
    It is true that in some (many?) cases Apache optimization can achieve results similar to LSWS (especially if you're willing to buy hardware to make up for Apache's CPU and memory usage issues). But I feel like many people, especially experienced sysadmins, like to say what you've said — that you can tune Apache to do what LSWS does. That statement, I feel, ignores the fact that tuning Apache is not a simple task. It may be possible, but it is time-consuming, even for experienced sysadmins, and expensive if you have to pay someone else to do it.

    Would love to know what exactly does LSAPI offer which result into faster #-Link-Snipped-#performance?
    Most of the difference is actually just code optimization. In different environments (like shared hosting) the extra features, like suEXEC daemon mode which then allows for effective opcode caching, can also make a big difference.
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register