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 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用