How to accurately determine the cause of the delay of the website in magento2?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
33 views
Welcome, there are several sites on magento2
they are all located on the same server, nginx, php-fpm, ssl, used one copy of magento2 , for each domain - your website, store and starview. 3 of them are on default theme - luma, 2 - on the popular themeforest theme on the market.
In General, the same settings have a wild difference in performance, exactly the problem in the boot, more precisely, as shown by webpagetest, TTFB - time to first bite.
For clarity - the first site on the market is slow, the second to luma and fast.

Website 1

site1_01.jpg
site1_02.jpg

Site 2

site2_01.jpg
site2_02.jpg

As can be seen, first site time to load the first byte is a shame. The logical conclusion that it is in the subject, but a huge number of shops are using commercial themes, including market. I understand if it was unsolvable, no one would use such things, right?
Question - how to solve the problem of how to determine exactly what is happening these 5 seconds to download 1 byte? After all, what's going on? How to understand that? Wireshark and analyze the traffic or something else?
The page itself is optimized longer - minimized js, css and pictures used where svg and webp background, but no slider or carousel, well, it. It is seen that the downloads decreased, but this does not solve the problem TTFB.
And it is necessary to solve it.
by | 33 views

2 Answers

0 like 0 dislike
For starters, you can try to solve the problem using standard magento means(without varnish)
\rdevdocs.magento.com/guides/v2.0/config-guide/prod/...

The logical conclusion that it is in the subject, but a huge number of shops are using commercial themes, including market. I understand if it was unsolvable, no one would use such things, right?


I say that the topic can go to the appendage with custom modules, and there is no one is immune from suboptimal solutions type of call objectManager directly, ignoring the proxy, ignoring the caching of individual blocks, etc.
by
0 like 0 dislike
99.99% template the much slower default luma, because the developers simply do not care about code quality and download speed.
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked May 20, 2019 by good_beginer
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
0 comments
40,796 users