Skip to content

100% CPU load and mem usage with render and unexisting service access #13916

@valeriangalliat

Description

@valeriangalliat

I ran into this problem while I had a typo in a service class name; when trying to load a page that renders another action accessing this service, the CPU load and mem usage of my computer started to increase until saturation.

I could reproduce this on a fresh Symfony 2.7 installation with very few lines of code.

I'm using the built-in development server app/console server:run (this bug doesn't happen with Apache); here's the verbose output:

Server running on http://127.0.0.1:8000

Quit the server with CONTROL-C.
  RUN  '/usr/bin/php5' '-S' '127.0.0.1:8000' '/home/hap/public_html/symfo/test2/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/router_dev.php'
  RES  137 Command did not run successfully
Built-in server terminated unexpectedly

Here's a capture of htop while loading /app/example:

100% CPU load and high mem usage

I'm running Debian Wheezy, x86_64, and PHP is 5.4.36.

Is there anything I can do to help targeting more precisely this bug?

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