Skip to content

Profiling Memory Errors #1881

@miqrogroove

Description

@miqrogroove

Doctrine needs to be smarter about avoiding memory exhaustion with profiling enabled.

I thought I had a severe memory leak in my script, but I traced it back to the profiling setting for Doctrine. When enabled, I lose about a megabyte of PHP memory for every file that I need to parse and persist. In situations where I need to process hundreds of files, that means my only option is to globally disable the profiling setting to prevent memory allocation errors.

Is it possible to change Doctrine to clear the profiler when clearing the ORM?

Is it possible to change Doctrine to have a configurable size limit for profiling?

Is it possible to change Doctrine so that profiling can be disabled at run time?

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