Skip to content

Increased memory usage after upgrading to v2.1.31 #13685

@thePanz

Description

@thePanz

Bug report

After upgrading from PHPStan v2.1.30 to v2.1.31 we noticed a BIG increase in the memory usage of PHPStan.

(old version) v2.1.29

Elapsed time: 3 minutes 56 seconds
Used memory: 1.39 GB

v2.1.30

Elapsed time: 4 minutes 5 seconds
Used memory: 1.33 GB

with v2.1.31 I got two PHP processes spiking at 4.8G of RAM usage after the first 30 seconds

Image

Code snippet that reproduces the problem

The repository with the codebase is a private project.
How can I help you identify the issue?

Expected output

PHPStan should be able to terminate successfully without consuming all the available memory of the system :)

Did PHPStan help you today? Did it make you happy in any way?

Yes!

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