Answer the question
In order to leave comments, you need to log in
Problem with page load speed from the box on symfony 2.7 or is it normal for symfony?
Problem with page load speed from the box on symfony 2.7 or is it normal for symfony?
2 seconds the page is loaded from the box ...
php 5.6 ubuntu server
maybe some modules for php 5.6 are needed?
Answer the question
In order to leave comments, you need to log in
For fast work of symfony on 5.6 it is necessary to include opcache. The transition from Apache to Nginx gives a speed gain by another 3-4 times (why, I still don’t understand). Turning off xdebug also gives a decent speed boost. In php.ini, it is desirable to set:
realpath_cache_size = 4M or more
. Under all these conditions, I have a page generation time of 0.2-0.3 seconds in the dev environment of the finished application, and about 0.05-0.1 seconds - loading the bare framework.
For the first boot, it seems to be normal - symphony parses a bunch of configs and generates a lot of file caches. Then it all gets into the opcode cache (do you have opcache enabled?) and moves more or less quickly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question