What is the maximum memory limit of 1.php
2. Does the number of php versions (32-bit or 64-bit) have an impact on the maximum memory limit?
3. It is known that below php7, the maximum memory limit for single script execution is 2G, and php7 has no limit;Reply content:
2. Does the number of php versions (32-bit or 64-bit) have an impact on the maximum memory limit?
3. It is known that below php7, the maximum memory limit for single script execution is 2G, and php7 has no limit;
No, as long as memory_limit is set to -1 in PHP, it will not limit the memory limit when you run the cli script. The rest is that the operating system ulimit will limit the maximum memory of any process.
Configuration
memory_limit
It can be set, and then it depends on your available physical memory.