magento / magento/magento2-phpstorm-plugin

Out of memory be UCT run

Open
#2,512 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
463
Forks
98
Avg merge
1h 6m
Merged PRs (30d)
3

Description

**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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the UCT plugin configuration and how it invokes UCT, comparing that with the CLI command using php -dmemory_limit=-1. Reproduce the failure with a large project and the reported 128 MB limit. Done means UCT can run without the PHP memory error and supports the needed PHP memory or interpreter setting.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.