R
R
Ravend2015-11-08 02:07:12
symfony
Ravend, 2015-11-08 02:07:12

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

4 answer(s)
J
jaxel, 2015-11-08
@jaxel

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.

A
Alexander Melekhovets, 2015-11-08
@Blast

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.

S
shagguboy, 2015-11-11
@shagguboy

what does the profiler say?

V
voronkovich, 2015-11-13
@voronkovich

I advise you to look Symfony 2 checklist

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question