Home >Backend Development >PHP Tutorial >What is the maximum memory limit of php

What is the maximum memory limit of php

WBOY
WBOYOriginal
2016-12-05 13:44:263407browse

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:

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;

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.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn