My ZF2 application seems to be extremely slow when more than 3 users are using it at the same time.
I profile my code with xdebug and webgrind and non of my function
If you are using Doctrine, don't forget to add a cache for annotations. This drastically improve performance (when I activate this cache I divide nearly by two the loading time). If you are using DoctrineORMModule:
'doctrine' => array(
'driver' => array(
'cache' => array(
'class' => 'Doctrine\Common\Cache\ApcCache'
),
'configuration' => array(
'orm_default' => array(
'metadata_cache' => 'apc',
'query_cache' => 'apc',
'result_cache' => 'apc'
)
),
)
)
However, it's quite inconvenient while developing because you must clear the cache whenever your mapping change.