duan02468 2015-06-03 12:45
浏览 199

Apache(httpd.exe)处理CPU和内存利用率导致网页缓慢或无响应

ISSUE: My website is extremely slow processing pages, and often times just hangs.

OLD environment: I used to run Apache 2.2 (from Apachelounge), PHP 5.3, and MySQL 5.5 on a Windows 2008 Web Server phyical box, hosted by Peer1 (ServerBeach). Website ran fast and reliable. At the time, I was using "mysql_" commands versus "mysqli_".

NEW environment: I now have a google compute engine VM running Windows Server 2012 R2. I installed Apache 2.4 from apachehaus.com (httpd-2.4.12-x64-vc11-r2.zip), PHP 5.6.9 (VC11 x64 Thread Safe), and MySQL 5.6.25 (64 bit). With some tweaking to the new httpd.conf and vhosts.conf files, I got my website back up and running. I also converted all the mysql_* references successfully to mysqli_*. Here's what I'm noticing: If I pull up the task manager on the apache server and watch the httpd process, every time I navigate to a website page, the CPU process climbs drastically and slowly gets back down to 0%. Often times, it'll even hit between 95-100% CPU utilization and stay there for a good 5 seconds, before slowly getting back down to 0%. Also, the apache memory utilization keeps getting larger with every page request, and never goes down. The website and mysql calls work and pages display fine, it just takes a long time to process.

I believe this to be a PHP issue, but I could be wrong. Recommendations are welcome.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 如何在scanpy上做差异基因和通路富集?
    • ¥20 关于#硬件工程#的问题,请各位专家解答!
    • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 截图中的mathematics程序转换成matlab
    • ¥15 动力学代码报错,维度不匹配
    • ¥15 Power query添加列问题
    • ¥50 Kubernetes&Fission&Eleasticsearch
    • ¥15 報錯:Person is not mapped,如何解決?
    • ¥15 c++头文件不能识别CDialog