Nginx 与 Cherokee 替代 Apache
您如何比较 Nginx 和 Cherokee 在内存使用和性能方面的情况?我的 VPS 通过 apache2 prefork-mpm 为 Drupal 6.16、magento 1.4.1 和 CS-CART 2.0.15 提供服务。即使我的网站流量很低(htop 显示每个 apache 进程占用 %18 内存),Apache2 也会占用我的内存。如果我将 apache 更改为 nginx 或 cherokee,我是否会遇到与 magento、cs-cart 和 drupal 的兼容性问题?哪一款最兼容?我真的很感谢任何生产系统经验。谢谢。
How do you compare Nginx and Cherokee in terms of memory usage and performance? My VPS serves Drupal 6.16, magento 1.4.1 and CS-CART 2.0.15 with apache2 prefork-mpm. Apache2 eats my memory even though my sites are pretty low traffic profile (htop shows that each apache process eats %18 memory) . If I change apache to nginx or cherokee will I face any compatibility issues with magento, cs-cart and drupal? Which one is the most compatible with? I reallly appreciate any production system experience.Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以通过安装 PHP 加速器(例如 eAccelerator)来大大减少 VPS 的内存消耗。在大多数情况下,Apache Web 服务器表现得很好。您可能需要调整它以针对您的特定设置进行优化。不过,您需要对此进行一些阅读,因为在这方面没有灵丹妙药。
You can greatly reduce the memory consumption of your VPS by installing a PHP accelerator such a eAccelerator. In most cases Apache web server will perform just fine. You might need to tweak it to optimize for your specific set up. You need to do some reading up on that though, since there is no silver bullet when it comes to that.
尝试 Hiawatha:http://www.hiawatha-webserver.org/。它的UrlToolkit比Apache的mod_rewrite先进得多。是的,您提到的框架可以在 Hiawatha 上正常运行。我自己测试过。
Try Hiawatha: http://www.hiawatha-webserver.org/. Its UrlToolkit is far more advanced than Apache's mod_rewrite. Yes, the frameworks you mentioned will run fine with Hiawatha. Tested it myself.
请查看下面的帖子,了解 Apache、Cherokee 和 Nginx 的一些与内存相关的测量。您可能会通过谷歌搜索类似的结果。但是,我建议在考虑典型案例的情况下运行此类测试,看看它如何适合您的用例。
Take a look at the post below for some memory related measurements for Apache, Cherokee and Nginx. You might google around for similar results. However, I would recommend running such tests with typical cases in mind to see how it fits your use case.