A
A
AlexSer2021-04-28 10:11:10
Yii
AlexSer, 2021-04-28 10:11:10

Why is it taking so long to load the page?

A script is being executed to display data in Yii2. The amount of script execution memory is 33 mb, the page loads on the server in 40 seconds. I uploaded this project to the local OSpanel server on a stationary PC and the database to the local Mysql, the page loads in a split second.
All rights on the Ubuntu server on folders are 777 and on files 755. The amount of memory allocated shows 22 MB.
The question is what is the MB reason when a request is processed for such a long time on a powerful server, and on my PC in a fraction of a second.
Server connection speed 100 Mb local network.
All Js scripts are on the server.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin, 2021-05-06
@AlexSer

You need to deal with the profiler. First, using the Dev Tools in the browser, see how long the response itself takes, and how long the page is rendered, find out if it's in php or js.
If in php - connect the profiler on the server side and watch the logs. I personally like Blackfire.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question