Answer the question
In order to leave comments, you need to log in
How to optimize Symfony performance?
There is a project on symfony2. Memcache, apc, apc class loader enabled
Test ab -c 100 -n 1000 of the main page gives 50 requests per second, the maximum page load reaches 4 seconds.
Profiled with xdebug, I did not find any bottlenecks, everything slows down proportionally.
There is enough memory, disk operations, mysql is cached at the peak of only 40 requests per second
But the processor is loaded to the fullest, LA 100%.
I tried to immediately return the response in the controller, the situation did not improve much. Those. the problem is somewhere in the symphony itself.
I saw a similar project with similar behavior, it was somehow fixed there.
Maybe someone knows how else to optimize performance?
Answer the question
In order to leave comments, you need to log in
www.symfony2-checklist.com and https://github.com/helthe/Turbolinks here)
Try nginx + php-fpm instead of apache.
Aggregate all js/css , collect all pictures into 1 png file.
Switching to php 5.4 and above.
As mentioned above, Varnish + ESI allows pages or parts of them to be served directly from RAM, but is only suitable if you have a lot of static content.
Turbolinks in Rails 4, for example, is now generally the default . But it will not affect the return of the main one.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question