简体   繁体   中英

Why is my PHP application running slower in my production environment?

I have developed a web application which takes 10 seconds to complete a transaction on php 5.2.17+Apache2.2.8 environment.

After I put them on the production server(Window server 2008+IIS 7+php 5.2.6) it takes 50 seconds to complete the same transaction.

The calculation is based heavily on php, no calculations are done in sql at all.

Did I just mess something up or i this normal for PHP on IIS.

We're all just going to be shooting in the dark, we're missing a lot of detail to help.

Install XHProf: https://github.com/facebook/xhprof in both environments, it will give you detailed information on what PHP is doing, and how long it takes.

A bunch of work has been done to get XHProf running on Windows, though not by Facebook. It shouldn't be a stumbling block. http://www.benjamin-carl.de/howtos/xhprof-php-extension-0-10-0-windows-32nt-compatible-version/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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