Magento 2.2.2 – developing a custom module for use within a custom theme whose parent is
I have created a command ‘discountgenerator:creatediscount’. There are two searches performed within this function. One for a product filtered by category, from a group of 3 categories, and another for a rule, filtered by name. There are only 3 categories in the store, each containing only 1 product.
When I attempt to execute the command, I receive the following error message:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /srv/data/web/vhosts/[domain]/htdocs/vendor/magento/framework/Reflection/DataObjectProcessor.php on line 122 Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.
I have attempted to run the command using the
-dmemory_limit=-1 option, without success.
When I look at magento’s
system.log file, I can see the following message:
[2018-02-14 21:18:04] main.WARNING: Memory size allocated for the temporary table is more than 20% of innodb_buffer_pool_size. Please update innodb_buffer_pool_size or decrease batch size value (which decreases memory usages for the temporary table). Current batch size: 1000; Allocated memory size: 3000000 bytes; InnoDB buffer pool size: 8388608 bytes.  
Several entries appear each time I attempt to run the command, each with different batch sizes etc.
I have attempted to resolve this issue by implementing the following code within my module’s
<type name="Magento\Catalog\Model\Indexer\Category\Product\Action\Full"> <arguments> <argument name="batchRowsCount" xsi:type="array"> <item name="configurable" xsi:type="number">200</item> </argument> </arguments> </type>
No matter how much I reduce the value, I receive the same errors. I have read through the documentation but I can’t see any other relevant attributes which would cause this.
✓ Extra quality
ExtraProxies brings the best proxy quality for you with our private and reliable proxies
✓ Extra anonymity
Top level of anonymity and 100% safe proxies – this is what you get with every proxy package
✓ Extra speed
1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!
USA proxy location
We offer premium quality USA private proxies – the most essential proxies you can ever want from USA
Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies
Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!
Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!
99,9% servers uptime
Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems
No usage restrictions
You have freedom to use your proxies with every software, browser or website you want without restrictions
Perfect for SEO
We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies
Buy more proxies and get better price – we offer various proxy packages with great deals and discounts
We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!