V
V
Vladislav2016-08-12 23:04:39
symfony
Vladislav, 2016-08-12 23:04:39

Why does Symfony 3 take so long to load?

Delivered Symfony3 framework-standard-edition, I load app.php (prod), standard defaultController is loaded 300-400ms. I use php7, Symfony config is standard. Why so long?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
index0h, 2016-08-12
@MrBikus

For a production environment, 300-400ms is too much. In fact, even for a development environment with a complete rebuild of the caches, this is a bit too much. Check the creation dates of the files in the var/cache directory, if they change with each request - you are not in a production environment. If there is a debug console on the bottom of the page, you are not in a production environment either. Also check if the doctrine logger is enabled, it also eats a lot. As for doctrine caches, it makes sense to store them in memcached.
If nothing helps, look through xhprof what is taking so long for you.

O
OnYourLips, 2016-08-13
@OnYourLips

Too long to sell.
Is debugging turned off?
is xdebug disabled?
is opcache enabled?
Is the computer up to date?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question