Skip to content

Invalid memory consumption shown when using parallel processing and verbose mode #4683

@janedbal

Description

@janedbal

Bug report

While running phpstan with parallel processing enabled with verbose mode, it shows invalid memory consumption.

Latest version used (0.12.81), 8 logical cores on my laptop.

Code snippet that reproduces the problem

phpstan analyse -vvv src 
Note: Using configuration file /app/phpstan.neon.dist.
Result cache not used because the cache file does not exist.
 5946/5946 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100% 2 mins/2 mins 154.5 MiB

Result cache is saved.

 [OK] No errors 

Used memory: 306.39 MB

Expected output

By checking the system memory, it really used about 6 GB. So I'd expect that number to be displayed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions