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 划分vlan后不通了
    • ¥15 GDI处理通道视频时总是带有白色锯齿
    • ¥20 用雷电模拟器安装百达屋apk一直闪退
    • ¥15 算能科技20240506咨询(拒绝大模型回答)
    • ¥15 自适应 AR 模型 参数估计Matlab程序
    • ¥100 角动量包络面如何用MATLAB绘制
    • ¥15 merge函数占用内存过大
    • ¥15 Revit2020下载问题
    • ¥15 使用EMD去噪处理RML2016数据集时候的原理
    • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大