-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add a recommended PHP memory_limit value for just running Magento 2 in production #739
Comments
In my personal opinion, Magento should not recommend these settings because they're too dependent on what you want to do. Import/export and testing drives memory usage way up and memory is pretty cheap isn't it? I'll ask for advice and update you. |
You have a point there, although for testing you already recommend a value ( I'm looking for a value for just running a vanilla Magento 2 instance without any extra modules and a small catalogue of products. But you are right, it will probably depend from store to store and how big the catalogue is and what features get used and what external modules are installed, ... But just a bare minimum recommendation would be helpful. I think a year ago, I tested a Magento pre-2.0.0 version on a server running PHP 5.5, with the configuration set to |
This and issue #419 are expected to be resolved with the 2.2 release but I don't know a time frame for that release. |
For what it's worth, the Magento setup code itself looks for a minimum memory level of 756MB, not 768MB. Those few MB are unlikely to be significant, but it's an odd discrepancy. |
Good catch, thanks! I updated documentation. |
I still believe this limit is ridiculously high. |
@misha-kotov can you please read above, particularly @hosteps post on July 4th, re: test versus prod environs? |
@hostep How do you update Magento and components? |
Using composer on our local machines (which uses php-cli and a |
@hostep Thanks. I am a bit dense about this. Does |
@xcomSteveJohnson, Separately, I just noted that the Magento code (in the next line after I linked above), specifies 2GB as the minimum for running the Magento setup wizard. This is not precisely the same as component/module updates, but it yet another data point to consider for the docs: |
@hostep @scottsb We cover it here: http://devdocs.magento.com/guides/v2.1/install-gde/prereq/php-settings.html: Installing and updating Magento components from Magento Marketplace, 2G |
Remove order tutorial for now, it’s not ready
Closing due to lack of activity. |
@jcalcaben: I was hoping the devdocs team would ask this to the dev team for a clear answer, but if there isn't one, then ok, too bad :( |
Uh oh!
There was an error while loading. Please reload this page.
Hi
I noticed you added a bunch of recommended
memory_limit
values over here and here:But there is one crucial recommendation missing: namely what
memory_limit
do we need to use to just run Magento 2's frontend and backend.I believe you currently recommend
768M
, but I can't believe that's actually true, that's just way too high.We currently run our M2 shops with
memory_limit
set to512M
, but it wouldn't surprise me one bit if this can still be reduced a lot.Would be great if Magento can give us some official recommendations about this.
Thanks!
The text was updated successfully, but these errors were encountered: