简体   繁体   English

IIS上的Wordpress:高CPU使用率

[英]Wordpress on IIS: High CPU Usage

we're using WP 4.0 on IIS 7, and experience high cpu usage: regularly spikes up to 25% for a single process (php-cgi.exe) in a pool (w3wp.exe), which will sometimes summ up over 3 or more processes to > 60% (as can be seen by sysinternals process explorer). 我们在IIS 7上使用WP 4.0,并且CPU使用率较高:池(w3wp.exe)中的单个进程(php-cgi.exe)的峰值峰值通常为25%,有时有时会超过3或更多的进程> 60%(可以通过sysinternals进程浏览器看到)。 I already checked that FastCgi is active and even installed wincache for php - which helped a bit. 我已经检查过FastCgi是否处于活动状态,甚至为php安装了wincache-这有所帮助。 And Also I deaktivated all the plug-ins - which also only brought a minor improvement. 而且,我取消了所有插件的功能-这也带来了较小的改进。

Our System: 我们的系统:

  • 3 intel Xeon CPU 3.7 Ghz 3个Intel Xeon CPU 3.7 Ghz
  • 12 GB Ram 12 GB内存
  • WP 4.0 WP 4.0
  • Microsoft IIS 7 Microsoft IIS 7
  • PHP Version : 5.3.23 / 32Bit OS PHP版本:5.3.23 / 32Bit OS
  • Memory limit : 128 MB 记忆体上限:128 MB
  • Memory usage : 21.65 MB 记忆体使用量:21.65 MB

Any ideas what can be done about this? 有什么办法可以解决吗? Change some settings for FastCgi or Wincache? 更改FastCgi或Wincache的某些设置? Do we need better hardware? 我们需要更好的硬件吗?

your's Felix 你的费利克斯

Is this a production server? 这是生产服务器吗? I could only guess... More information is needed than just pointing the resources you have. 我只能猜测...需要更多的信息,而不仅仅是指出您拥有的资源。 I'll give you some points to start. 我会给您一些要点。

Seems like you have plenty of memory and CPU resources. 似乎您有足够的内存和CPU资源。 Your hardware is ROCK SOLID and you don't need a better hardware! 您的硬件是坚如磐石 ,您不需要更好的硬件! But! 但! One big problem I see is the OS (in my opinion). 我看到的一个大问题是操作系统(我认为)。 Is there anything else going on that machine? 那台机器上还有其他事情吗?

Are you converting photos, doing some CPU intensive operations within the WP installation? 您是否正在转换照片,在WP安装中执行一些CPU密集型操作? Any image optimizers? 有图像优化器吗? Are you displaying/resizing any images? 您要显示/调整图像大小吗? Try disabling all of the plugins you have and the caching as well - plugins or server side. 尝试禁用所有具有的插件以及缓存-插件或服务器端。 Another thing to try is changing your theme to one of the default ones. 要尝试的另一件事是将主题更改为默认主题之一。 How many page hits do you have? 您有多少页面匹配?

Try setting the Max Instances setting, under IIS Server --> FastCGI Settings, to 1. 尝试将“ IIS服务器-> FastCGI设置”下的“最大实例数”设置设置为1。

Try to trace which certain requests are causing the php-cgi.exe go rogue and hog the CPU. 尝试跟踪哪些特定请求导致php-cgi.exe流氓并占用CPU。

And after all I would recommend running Wordpress on a linux machine with NGINX and if possible Lighttpd for serving the static content, if you're not comfortable with both try running Apache 2.4 with MySQL 5.5. 毕竟,我建议在装有NGINX的Linux机器上运行Wordpress,并在可能的情况下建议使用Lighttpd来提供静态内容,如果您都不满意,请尝试在MySQL 5.5上运行Apache 2.4 Install Oracle VM Virtualbox for example and run a Debian OS or whatever you feel comfortable with and see, if you have the same issue. 例如,安装Oracle VM Virtualbox并运行Debian OS或您满意的任何软件,看看是否有相同的问题。 If the Windows OS is not needed for anything else (which we don't know yet), if possible switch to a favorable Linux. 如果不需要其他任何Windows操作系统(我们尚不知道),则尽可能切换到合适的Linux。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM