douhuan1380 2012-04-25 20:52
浏览 34
已采纳

Apache Benchmarks非常糟糕,有什么建议吗?

Using Apache Bench, the home page of my site can only handle 0.42 requests per second. A simple phpinfo() page can handle 31.99 requests per second, which seems really slow for such a simple script. Obviously my home page handling 0.42 requests is not acceptable.

I'm running Apache 2.2 on Windows Server 2008. 4 GB RAM, 2.4 GHz Intel Xeon CPU.

The site is built on the PHP CMS Expression Engine with a MySQL database. Expression Engine has really aggressive page caching, so the home page is for all intents and purposes static (there is some processing going on, but it just ends up storing a static file on the hard drive). I have SQL caching turned on as well (200 mb allocated). When the page isn't cached, there is 84 queries on the home page, which doesn't seem too crazy.

Anyone have any obvious ideas as to how I can make this thing run better? Some kind of php.ini, my.ini or httpd.conf setting I should check out?

  • 写回答

2条回答 默认 最新

  • dongshun1884 2012-04-25 20:59
    关注

    You can use a reverse proxy, like Varnish, because the fastest application is the application, that is not executed. Especially the ESI-Support is quite cool to speed up highly dynamic pages.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 maple软件,用solve求反函数出现rootof,怎么办?
  • ¥50 汇编语言除法溢出问题
  • ¥65 C++实现删除N个数据列表共有的元素
  • ¥15 Visual Studio问题
  • ¥15 state显示变量是字符串形式,但是仍然红色,无法引用,并显示类型不匹配
  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波