I noticed that Magento 2.1 manual recommends memory_limit=2G
in php.ini
. That is a crazy amount of memory, isn't that memory allowed per HTTP request? I doubt there is any hosting provider that provides that amount of memory for PHP scripts, and certainly makes Magento not viable for shared hosting.
Is that perhaps an amount for setup and migration? Is that amount really needed for production?
I also found in the documentation:
Set the PHP memory limit.
Our detailed recommendations are:
Compiling code or deploying static assets, 756M
Installing and updating Magento components from Magento Marketplace, 2G
Testing, 2G
It doesn't mention production recommendations. What is recommended for production?