-
-
Notifications
You must be signed in to change notification settings - Fork 452
Open
Labels
Description
Preconditions (*)
- OpenMage 20.0.10
Steps to reproduce (*)
- Create 11 catalog rules which apply discounts to products where category is one of 1,2,....N and at least 10 clauses where manufacturer is 1..N to apply a discount percentage
- Use a medium sized catalog of about 40K products
- Try to apply all rules
e.g.
Expected result (*)
- Rules are applied
Actual result (*)
- Memory exhausted. In my case it required 16GB of RAM to actually execute the
\Mage_Adminhtml_Promo_CatalogController::applyRulesAction
e.g. to simulate in a CLI script
<?php
require_once('app/Mage.php');
umask(0);
Mage::app('admin');
ini_set('memory_limit', '1G');
Mage::getModel('catalogrule/rule')->applyAll();Will yield
PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 75497472 bytes) in /var/www/vhosts/example.com/httpdocs/app/code/community/Varien/Profiler.php on line 169
And it will crash until I put 16G in the limit.
