Skip to content

-2000% performance with Symfony 3.2.3 (server CPU overload) #21559

Closed
@tristanbes

Description

@tristanbes
Q A
Bug report? yes
Feature request? no
BC Break report? -
RFC? -
Symfony version v3.2.3

Hello,

We run a multi-tenant application on Symfony v3.2.1. When we upgraded the vendors (only minor version) the application didn't respond anymore, and all our server pool reached 100% of usage (when it's <5% usually).

I tracked down, and upgraded vendor by vendor, until I upgraded from Symfony v3.2.1 to v3.2.3, as soon as the update landed the production, the same behaviour happened again.
All servers went to 100% CPU usage, and we couldn't get a single page loaded.

Even after 5 minutes after turning webserver off, all PHP threads didn't seem to be killed. Had to manually restart PHP to free all the CPU's.

Only Symfony were upgraded to reproduce the "bug" (I did it twice on production to be sure it was really a Symfony problem)

Here are some charts showing the symptoms:

System specs; 2 servers running (database on other servers):

  • PHP FPM 7.0.15-1~dotdeb+8.1
  • OPcache enabled
  • Nginx 1.11.9
  • Xeon CPU E5-1620 v2 @ 3.70GHz
  • 32Go RAM

Same server, same settings, only Symfony version changes:

Symfony v3.2.1: 6,734ms
accueil_-bc2e___reseau_national_de_diagnostic_immobilier__franchise_diagnostiqueur_immobilier

Symfony v3.2.2: 6,574ms
accueil_-bc2e___reseau_national_de_diagnostic_immobilier__franchise_diagnostiqueur_immobilier__et_composer_json-yprox-v2-___workspace_yprox-v2

Symfony v3.2.3: 19,613ms
accueil_-bc2e___reseau_national_de_diagnostic_immobilier__franchise_diagnostiqueur_immobilier

Normal performance main request screenshot
symfony_profiler

VS Degraded performance main request screenshot
symfony_profiler

Blackfire comparaison

Here's the blackfire comparaison

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions