Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Why nginx instead of lighttpd? - Page 2
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Why nginx instead of lighttpd?

2

Comments

  • @Roph said: Have any of you used thttpd?

    Doug maybe? Or maybe I'm getting confused.

    I still use it for serving cgi (e.g., baycam.ca) or for when I want only minimal http capabilities without php, etc.

  • Nginx uses less CPU, memory, and serve more requests/sec, why would you use lighttpd? I also find lighttpd crumbles under high load.

  • @Kairus said: Nginx uses less CPU, memory, and serve more requests/sec, why would you use lighttpd?

    Wheres that based on?

  • RophRoph Member
    edited April 2012

    Experience I guess. here's some simple status from one of my LEBs, which I use as a download server. Debian 6 stripped down, Nginx/PHP-FPM and SSHd are all that run.

  • One example more of this kind of questions...

    http://serverfault.com/questions/114895/why-is-nginx-more-popular-than-lighttpd

    But you have toooo much things to do, so don't read

    Thanked by 1raindog308
  • NanoG6NanoG6 Member
    edited April 2012

    LIGHTTPD configuration is indeed 'clean' and easier to understand imo. But because I love PHP-FPM more than fast-cgi, so I switched to nginx.
    Using LIGHTTPD with PHP-FPM is pain in the ass if your web is WordPress with pretty permalinks, because you have to use mod rewrite and it's not easy for me.

  • @OneTwo said: There is no memory leak.

    Thats just plain false.

  • I used Lighttpd a year back, caused huge memory leaks.
    Since then, I've only ever used it for HTTP Keep Alives, which NGINX doesn't seem to like too much.

  • subigosubigo Member
    edited April 2012

    @gsrdgrdghd said: Thats just plain false.

    Proof? I've been using Lighttpd for years and haven't had a single memory issue. I currently manage a client's server with 500k+ uniques a day and it runs Lighttpd without issues as well. Before you go pushing that memory leak rumor (that was based off an actual memory leak from like 4-5 years ago), you better have some proof.

  • @subigo said: Proof?

    It won't need proof, every software has memory leaks. Nginx does, just everything does. And no professional developer would ever claim that his software doesn't have memory leaks.

  • @gsrdgrdghd said: It won't need proof, every software has memory leaks. Nginx does, just everything does. And no professional developer would ever claim that his software doesn't have memory leaks.

    I'm rolling my eyes at that retarded answer.

    http://redmine.lighttpd.net/boards/2/topics/4009 (notice he's one of the lead developers)

    The "OMG LIGHTTPD HAS MEMORY LEAKS!!!11!!" crap originally started when people misunderstood this bug report: http://redmine.lighttpd.net/issues/758

    If there was some giant leak that caused RAM to be consumed to the point of crashing a server, there would be at least ONE bug report with actual proof. As it is, the only people who bitch about a Lighttpd memory leak, are people on forums like this, who haven't even used it.

  • @Roph thats a nice status page.. Do you want to share the source? It looks prettier than mine: http://raymii.org/status.html

    Thanked by 1djvdorp
  • @subigo said: If there was some giant leak that caused RAM to be consumed to the point of crashing a server,

    Noone talked about a giant leak, i was refering to a 2 or 3 byte memory leak.

  • bijan588bijan588 Member
    edited April 2012

    @Raymii How bout the source of yours?

  • @bijan588 http://raymii.nl/status.txt
    In a cronjob every 5 minutes, running as root. Adapt where necessary.

    Thanked by 1djvdorp
  • @bijan588 said: How bout the source of yours?

    It's this: http://linux.dashed.ca/index.cgi/2011-01

  • @OneTwo
    Congratulations you create a holy war on LEB

  • RaymiiRaymii Member
    edited April 2012

    # Created by D. Robbins.'
    # Last revised: 17 october 2011'
    # by Raymii.org'
    # CC Unported Attribution 3.0'

  • @Roph said: Have any of you used thttpd?

    There's a good chance of thttpd (and uhttpd, as @yomero noted) bringing an LEB to its knees once they start getting more than one or two simultaneous connections.

    I used to prefer thttpd for my impromptu-console-download-server needs, but it often goes OOM if using aria2 to increase throughput from a slow route. I've switched to webfs since and been very happy.

    As for the main discussion, yes, the nginx paradigm/config has a learning curve for anyone used to apache, but once you spend a little time understanding it, it's no harder. nginx FTW.

  • RophRoph Member

    @Roph thats a nice status page.. Do you want to share the source? It looks prettier than mine:

    Funnily enough it was posted to 4chan's /g/ board.

    http://pastebin.com/L5C39ZTx

    I plan to edit it up a little to fix it for OVZ when I can be bothered :)

  • bretonbreton Member
    edited April 2012

    Separate logs per vhost in nginx, "alive" and in heavy development nginx, http://redmine.lighttpd.net/projects/4/wiki/Howto_WSGI - more simple configs?!

    Thanked by 1yomero
  • RophRoph Member
    edited April 2012

    Not relevant right now, but Nginx is going ahead with implementing SPDY. I'm definitely interested in how it pans out when it's better supported in browsers =o

    Thanked by 2yomero karl
  • @quirkyquark said: There's a good chance of thttpd (and uhttpd, as @yomero noted) bringing an LEB to its knees once they start getting more than one or two simultaneous connections.

    Can't say I've ever had that experience. After running thttpd for over a year I think I musta had more then 1 or 2 simultaneous connections at some point :) Though I do use only to serve cgi, behind nginx.

  • AkiraAkira Member

    Because it's Russian.

    http://royal.pingdom.com/2010/02/23/nginx-the-little-russian-web-server-taking-on-the-giants/

    I don't see much VPS/Dedi providers offering pre-installed Ngnix though.

    Thanked by 1djvdorp
  • I have used Lighttpd on a Shared Hosting server once before it and did cause a huge memory leak aswell.. I've always used Apache, it is light and does what I need it to do. My AlienVPS $19/Year VPS idles at 33MB Ram and runs Apache.

  • KuJoeKuJoe Member, Host Rep

    I only use Lighttpd, never had any issues with it.

    Thanked by 1nabo
  • I never have issues with nginx except when people decide to run slowloris from multiple systems.

  • While we were talking about exotic webservers like microhttpd, anyone has experience with the Cherokee Webserver?
    http://www.cherokee-project.com/

  • @djvdorp said: While we were talking about exotic webservers like microhttpd, anyone has experience with the Cherokee Webserver?

    I tried it, but didn't see the point.

  • @Daniel said: I tried it, but didn't see the point.

    Ah okay, I will try myself once and post back some results. Name sounds like Apache's brother lol, but I did like what I saw from the admin interface built in (for non-cli people)
    Founder of it seems a big guy from OpenSolaris, and reading this post it is (just) another Apache alternative:
    http://blog.dynamichosting.biz/2011/04/07/cherokee-vs-apache-benchmarks/

Sign In or Register to comment.