Skip to content

Out of memory be UCT run #2512

Open
Open
@dmanners

Description

@dmanners

Describe the bug (*)

When we are running the UCT tooling as part of the plugin we run into an out of memory issue with php. Unfortunately it seems not possible with the config to define the php memory limit for UCT or a custom php interpreter.

To Reproduce (*)

Steps to reproduce the behavior:

  1. Configure UCT with a large project,
  2. Run UCT tooling
  3. See error

Indexing project ***
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 266240 bytes) in phar:///***/uct/vendor/magento/magento-api-index/magento-api-index.phar/data/dictionary/x.php on line 1

Expected behavior (*)

UCT should run without hitting a php memory issue

Additional context

Running via the cli with php -dmemory_limit=-1 will allow me to override the memory limit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions