memory limit php

In php. ini, the default value is 128 MB, is this the value that will consume 1 script or all? And does it make sense to put more for a machine with 8GB RAM;

Author: Михаил Лобанов, 2016-08-13

1 answers

This is the maximum amount of memory that a single running script will consume. If this value is exceeded, it will be forcibly stopped with the error

Fatal Error: Allowed Memory Size of ... Bytes Exhausted

However, this is exactly the maximum allowed amount, the actual amount of memory for running scripts will be determined by their need and will be less than this value.

 2
Author: cheops, 2016-08-13 05:32:23