C:\xampp\htdocs\magento-ce-2.4.1-2020年09月25日-04-08-02>php bin/magento setup:di:compile
Compilation was started.
Repositories code generation... 1/9 [===>------------------------] 11% 4 secs 96.0 MiB
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in C:\xampp\htdocs\magento-ce-2.4.1-2020年09月25日-04-08-02\vendor\magento\module-customer\Block\Adminhtml\Edit\Tab\View\Wishlist.php on line 1
Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out-of-memory errors.
I have tried in all directions...
Devidas
3,3731 gold badge30 silver badges68 bronze badges
1 Answer 1
It Looks like your cli has only 128MB of memory allocated. Increase this value to at 256MB or 512MB at least. You can either increase increase memory limit in php.ini or directly run this command
php -dmemory_limit=-1 bin/magento setup:di:compile
-
i really appreciate your support. but after reaching 88%..i got error..i used two code in "PluginListGenerator.php".i.e, first i used to this code..then i got error in 88%: existing code :- $cacheId = implode('|', $this->scopePriorityScheme) . "|" . $this->cacheId; after i replaced existing code to modified code.i got same error in 88%: modified code :- $cacheId = implode(‘-’, $this->scopePriorityScheme) . "-" . $this->cacheId; after using this two code..i got error after reaching 88%.Rakshith Rai– Rakshith Rai2021年09月22日 04:55:02 +00:00Commented Sep 22, 2021 at 4:55
default
php -d memory_limit=5G bin/magento setup:di:compileOr you need to increase memory in php.ini