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

What is the maximum memory limit of php

WBOY
Release: 2023-03-03 10:46:02
Original
3410 people have browsed it

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.

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template