Home > Backend Development > PHP Tutorial > What should I do if the website access is slow? What should I do if the website cannot be accessed? How to access foreign websites? Check website visits

What should I do if the website access is slow? What should I do if the website cannot be accessed? How to access foreign websites? Check website visits

WBOY
Release: 2016-07-29 08:52:47
Original
1320 people have browsed it
The main reason for slow website access. The mysql load is high, the code is in an infinite loop, the network is delayed, etc.

If you want to optimize, mainly analyze PHP error log mysql slow log mysql error log php slow log

You can add some caching appropriately.

Of course, you can also use xdebug to locate a certain method or line first and then look at the code to determine which aspect of the problem

xhprof tool

Front-end website analysis: chrome YSlow plug-in

The above introduces what to do if the website access is slow? , including website access and what to do. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template