The April, 2007 Netcraft Web Server Survey
Posted Apr 3, 2007 8:28 UTC (Tue) by jmtapio
Parent article: The April, 2007 Netcraft Web Server Survey
It is no wonder that lighttpd has been gaining so much in popularity.
Apache does seem to use unbelievable amounts of memory on some
configurations nowdays. For example one setup that I am involved with:
$ ps aux | head -1; ps aux | grep apache2 | head -1
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 11964 0.0 3.5 154740 72856 ? Ss 06:25 0:05 /usr/sbin/apache2
And that is just the controlling process. The actual request serving
processes can in this setup use even more resident memory. And there are
no memory caches or something like that in use, just a typical setup with
cgi-scripts and php.
I can understand why Zope and JBoss and the like consume so much memory,
but Apache I can not understand. If the entire server used that much
memory, it would certainly be okay, but these figures are per process
memory consumption with the prefork model.
Anyway It would seem that the best model for web servers is to use the
httpd as a kind of web router that serves only the simple requests
in-process and communicates with external processes for every complicated
request. Although Apache is very modular and I like the flexibility and
configuration, it still seems very bloated for acting as a "web router".
That may just be the cause why people are looking for alternatives.
Competition is good and I hope lighttpd will gain more popularity.
to post comments)