Z
Z
ZoomZoom2016-08-06 11:18:42
PHP
ZoomZoom, 2016-08-06 11:18:42

Why the long response of the site?

The essence of the problem for the last 4 days the site began to respond for a long time, but at the same time the site’s admin panel works quickly and other sites on this server work, I think that the problem is in some kind of script that freezes, sometimes it can quickly enter the site, but most often you have to wait a minute or even two. Can anyone know how to track what is preventing the site from loading?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
P
Pavel Tuzov, 2016-08-06
@PavelTuzov

ctrl+shift+i in chrome
network tab shows which resource how long it takes to load

E
Evgeny Bukharev, 2016-08-06
@evgenybuckharev

Looking for the problem step by step.
If it's about scripts, then comment out the entire code of the problematic page, see how a blank sheet will load, then remove comments block by block, in this way you can find a problematic piece of code that affects page loading. For example, it can be a long query to the database, or queries to the database in a loop, and other problems. There may also be an attempt to load remote scripts.

S
Silm, 2016-08-07
@Silm

First, look at how things are with resources and processes on the machine. It may immediately turn out that the case, for example, is in the database, then go look for slow queries and tune the database. If the database is not the point and the study of processes and resources does not give anything useful, then either profile, or, as mentioned above, act by elimination.
You can start by looking for the fast-growing pages on the site and comparing them to the slow ones.

Z
ZoomZoom, 2016-08-07
@ZoomZoom

I noticed a strange dependence, yesterday the site was loaded in the evening for 20 seconds, today 2 minutes and so every time, why is this happening?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question