If you want to optimize, mainly analyze PHP error log mysql slow log mysql error log php slow log
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
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.