Issue with Composer Using Magento Data Migration Tool
I have been trying to use the Magento Data Migration Tool with Composer and I am facing Fatal Error - Out of Memory error.
Giving below the error message.
Can someone help me on what to do, I have already Googled and didn't find any solution. Note: The server have 16GB RAM, 6GB SWAP Partition and PHP Memory Limit set to 5GB.
composer require magento/data-migration-tool:2.2.6
./composer.json has been updated
Loading composer repositories with package information
mmap() failed: [12] Cannot allocate memory
Fatal error: Out of memory (allocated 344379392) (tried to allocate 20480 bytes) in phar:///usr/local/bin/composer/src/Composer/Json/JsonFile.php on line 270
Can someone help me on what to do, I have already Googled and didn't find any solution. Note: The server have 16GB RAM, 6GB SWAP Partition and PHP Memory Limit set to 5GB.
-
Hello @Logesh K, Can you verify which cPanel & WHM version is installed on this system? There's a similar issue reported on the following thread that was addressed in cPanel & WHM version 76: Thank you. 0 -
@cPanelMichael I am running the latest release 76.0.12 0 -
Can you check apache configuration if there is any Rlimit set for the server? 0 -
@cPanelMichael I am running the latest release 76.0.12
Can you also check if WHM >> Shell Fork Bomb Protection is enabled? If so, does disabling it solve the problem? Thank you.0 -
Can you also check if WHM >> Shell Fork Bomb Protection is enabled? If so, does disabling it solve the problem? Thank you.
Tried Disabling Shell Fork Bomb Protection, still didn't work. We manually installed the Composer on a external path than cPanel directory and it worked without fine.0 -
Hello @Logesh K, Can you confirm that you followed the Composer setup guide documented at the URL below? How to Set Up (PHP) Composer - cPanel Knowledge Base - cPanel Documentation The error output in your initial post doesn't look to reflect the "/opt/cpanel/composer/bin/composer" path. Thank you. 0
Please sign in to leave a comment.
Comments
6 comments