0

我们在 magento 中遇到了非常高的 CPU 使用率。该进程被列为 php。如果单个用户访问网站主页 CPU 会飙升至 30-40%。我们尝试了在数据库中没有任何内容的全新 magento 安装,但它仍然执行相同的操作。

我们有 PHP 5 和 PHP 5 处理程序 Suphp。我们在带有远程 mysql 的专用服务器上。

正常吗?

史蒂夫

已编辑

我现在切换到 Nginx 并注意到该网站超级快,CPU 使用率下降到过去使用 Apache 的 1/4。现在正在努力安装 Varnish 以获得更好的速度。我对所有人的建议是不要浪费时间迁移到 Nginx。

4

1 回答 1

0

Magento can be very intensive, it would depend on the specs of your server on how much strain you would get as a percentage.

Once you enable caching, and add in something like APC / EAccelerator it should drop a bit though.

A Good solution would be to scrap SuPHP and Apache and use Nginx as your webserver, this will greatly reduce the memory footprint and CPU load on your server.

Alternatively you can look into adding Varnish or Squid caching proxies which would also reduce CPU load by quite a bit.

于 2012-09-18T15:35:21.813 回答