小编mel*_*nin的帖子

Apache 2.2 服务器响应(Gentoo LAMP)之前的长时间等待

我最近将客户的网站(使用crete5 CMS)移到了运行 Gentoo、Apache 2.2、PHP5 和 MySQL 5 的 VPS 上,我注意到 Apache 响应时间非常糟糕(旧服务器上的情况相同) ,有时长达 8-9 秒,但更常见的是在 300 毫秒和 3 秒之间(我不介意接近 300 毫秒)。我知道这不是网络延迟,因为服务器的 ping(从我的位置)大约 30 毫秒。

这是一个时间示例(您可以在初始等待后看到它很活泼):

Firebug Net 面板时间线

我正在运行 APC(虽然我不确定它是否正常工作......)和 SuExec。Apache 模块是:

 core_module (static)
 authn_file_module (static)
 authn_default_module (static)
 authz_host_module (static)
 authz_groupfile_module (static)
 authz_user_module (static)
 authz_default_module (static)
 auth_basic_module (static)
 include_module (static)
 filter_module (static)
 deflate_module (static)
 log_config_module (static)
 env_module (static)
 expires_module (static)
 headers_module (static)
 setenvif_module (static)
 version_module (static)
 ssl_module (static)
 mpm_prefork_module (static)
 http_module (static)
 mime_module (static)
 status_module (static)
 autoindex_module (static)
 asis_module (static)
 info_module …
Run Code Online (Sandbox Code Playgroud)

response-time apache-2.2

9
推荐指数
1
解决办法
4万
查看次数

标签 统计

apache-2.2 ×1

response-time ×1