magento2-phpstorm-plugin icon indicating copy to clipboard operation
magento2-phpstorm-plugin copied to clipboard

Out of memory be UCT run

Open dmanners opened this issue 6 months ago • 1 comments

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.

dmanners avatar Apr 08 '25 06:04 dmanners