With a large catalog (250K+) products and images, if an attempt to run catalog:images:resize, eventually the command fails with "PHP Fatal error: Allowed memory size of 6442450944 bytes exhausted (tried to allocate 20480 bytes) in /vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php on line 291"
There is no way to batch this command into smaller processes.
I can confirm this issue. we assigned 5GB to php still our 100k sku catalog failed to resize images. ultimately we had to make a different store with less SKUs and copy image to our original media folder. Mage2 is an impossible platform to use in production.
@spyrule, thank you for your report.
We've created internal ticket(s) MAGETWO-80699 to track progress on the issue.
Hi @engcom-Charlie. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.
[ ] 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.
[ ] 4. Verify that the issue is reproducible on 2.4-develop branchDetails
- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and _stop verification process here_!
[ ] 5. Add label Issue: Confirmed once verification is complete.
[ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
Hello @spyrule
Thank you for contribution and collaboration!
We are not able to reproduce this issue on the latest 2.4-develop branch by provided steps.
Testing scenario:

Result:
catalog:images:resize works fine

We are closing this issue due to branch 2.2-develop was closed and
Magento no longer accepts pull requests and issues to the v2.2 release lines to focus all development efforts on v2.3.
See Accepted pull requests and ported code for more details
If you still faced this issue on 2.3 please create a new Issue with all required details according to Issue reporting guidelines
Thanks for your report!
I should mention, I no longer work for the company that had this huge catalog. They got fed up with Magento's broken product management, and dropped Magento completely. I now work for a company that has a tiny catalog by comparison, and have not experienced this issue since.
Most helpful comment
I can confirm this issue. we assigned 5GB to php still our 100k sku catalog failed to resize images. ultimately we had to make a different store with less SKUs and copy image to our original media folder. Mage2 is an impossible platform to use in production.