Skip to content
Advertisement

Why kernel.controller and AppFiltersListener take too long time

I’m trying to improve the project’s performance, and discover all request takes 567ms. Why do those two sections take too long time ??!!

I use symfony2.5 and php5.6

Any ideas, please?

enter image description here

Advertisement

Answer

I’ve solved

  1. First of all i installed APC (PHP caching) on my webserver and restart it.
  2. Modify my doctrine configuration to use APC.
orm:
   metadata_cache_driver: apc
   result_cache_driver: apc
   query_cache_driver: apc
  1. Modify the service configuration as well.
services:
   cache:
       class: DoctrineCommonCacheApcCache

The response time was less than I expected.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement