1

What kind of performance gain will I get from ditching Apache for NGINX if I have a very low traffic web site (e.g. 1000 unique visitors a day, approx 5 requests/sec at highest load, and approx 50 MB of traffic per day since lots of photos are being displayed).

Specifically, what gains (if any) would I have for:

  • Loading speed of the web site from the web user perspective
  • Server load
  • Concurrency

Again, this is for a low traffic web site and I'm running on a VPS.

4

2 回答 2

3

If you have such a low traffic, I am not sure you need to go through the troubles of changing your webserver : kind of looks like "premature optimisation" to me.

Well, at least, if those 1,000 visitors don't visit too many pages, and don't all arrive at exactly the same time.


You'd probably have way better gains for your users (and that's what matter !) by activating gzip compression for JS/CSS/HTML, and/or regrouping JS/CSS files into one instead of several, for instance.

About that, running yslow on your webite, and following some of the advices it'll give you, will probably bring more speed to your users than changing server.


Just to make clear : I don't say that you shouldn't optimize your server -- but that, with such a low traffic, it might be more interesting to display pages faster ; at least, first.

于 2009-09-14T21:23:01.943 回答
1

您的 Apache 服务器是否占用过多的 CPU 或 RAM?我从 Apache 切换到 Nginx 以节省内存,尤其是为静态文件提供服务:我似乎使用 Nginx 减少了大约 75% 的内存。

就像其他评论所说的那样,您确定 Apache 是瓶颈吗?如果你不交换,那么你有足够的内存。我认为您不会节省任何显着的服务器端延迟。

于 2009-09-14T21:55:04.093 回答