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

  • 3
    Not necessarily what will consume, this is the maximum available volume for a single script. There is no sense to change - depends on your scripts. If they need more than 128m, then it makes sense. - Vladimir Gamalyan
  • If the script needs more than 128MB, then it needs to be optimized. - Ipatiev
  • @ Ipatiev sometimes speed optimization makes it necessary to sacrifice the amount of memory consumed (but these are, of course, specific cases). - Vladimir Gamalyan

1 answer 1

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

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

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