Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance: very high initialization time after updating to >=3.11.0 #4409

Closed
borodiliz opened this issue Mar 22, 2017 · 2 comments
Closed

Comments

@borodiliz
Copy link

Environment

openSUSE Leap 42.2

Sonata packages

$ composer show sonata-project/*
sonata-project/admin-bundle              3.11.0 The missing Symfony Admin Generator
sonata-project/block-bundle              3.3.1  Symfony SonataBlockBundle
sonata-project/cache                     1.0.7  Cache library
sonata-project/core-bundle               3.2.0  Symfony SonataCoreBundle
sonata-project/doctrine-extensions       1.0.2  Doctrine2 behavioral extensions
sonata-project/doctrine-orm-admin-bundle 3.1.3  Symfony Sonata / Integrate Doctrine ORM into the SonataAdminBundle
sonata-project/exporter                  1.7.1  Lightweight Exporter library

Symfony packages

$ composer show symfony/*
symfony/assetic-bundle     v2.8.1  Integrates Assetic into Symfony2
symfony/monolog-bundle     v3.0.3  Symfony MonologBundle
symfony/polyfill-apcu      v1.3.0  Symfony polyfill backporting apcu_* functions to lower PHP versions
symfony/polyfill-mbstring  v1.3.0  Symfony polyfill for the Mbstring extension
symfony/swiftmailer-bundle v2.5.4  Symfony SwiftmailerBundle
symfony/symfony            v2.7.24 The Symfony PHP framework

PHP version

$ php -v
borja@linux-mqcv:/datos/borja/proyectos/memind> php -v
PHP 7.0.7 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
    with Xdebug v2.5.1, Copyright (c) 2002-2017, by Derick Rethans

Subject

After updating from 3.10.3 to 3.11.0, Symfony's initialization time has increased significantly

Before (<=3.10.3):

  • Total time 341 ms
  • Initialization time 107 ms

After (>=3.11.0):

  • Total time 4901 ms
  • Initialization time 3895 ms

Steps to reproduce

Update from 3.10.3 to 3.11.0

Expected results

An aceptable response time for all requests

Actual results

Poor performance on all requests

Thanks to all sonata team!

@borodiliz borodiliz changed the title Performance: very high initialization time after upgrading to >=3.11.0 Performance: very high initialization time after updating to >=3.11.0 Mar 22, 2017
@OskarStark
Copy link
Member

Did you update only sonata-project/admin-bundle or did you update Symfony itself, too?

@borodiliz
Copy link
Author

@OskarStark I updated only sonata-project/admin-bundle

Solved changing jms_di_extra configuration. See #4292 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants