【发布时间】:2009-05-18 19:41:24
【问题描述】:
我们正在努力优化我们的 drupal 网站。 我们正在使用 Siege 来衡量性能(作为 drupal 访问者)。
环境: Nginx + FastCGI+ Memcache
Siege 运行良好几秒钟,然后我们遇到连接错误: 示例:
HTTP/1.1 200 29.18 secs: 5877 bytes ==> /
HTTP/1.1 200 29.39 secs: 5877 bytes ==> /
warning: socket: -1656235120 select timed out: Connection timed out
warning: socket: -1673020528 select timed out: Connection timed out
使用相同的 Siege 测试配置,Nginx + FastCGI+ Drupal Cache 似乎工作正常。 示例:
HTTP/1.1 200 1.41 secs: 5868 bytes ==> /
HTTP/1.1 200 1.40 secs: 5868 bytes ==> /
如您所见,除了连接错误之外,使用 MemCache 的响应时间要长得多。
知道这里可能出了什么问题...以及为什么 Drupal 在加载内存缓存时抛出错误?
Memcache 在单独的实例上运行。为 MemCache 分配 2GB 内存。
【问题讨论】: