magento / magento/magento2-phpstorm-plugin
Out of memory be UCT run
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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