We use cookies
We use cookies to optimize our website. By continuing to browse the site, you agree to our use of cookies.
New design
Control panel
  • Русский
  • Українська
  • English
  • UAH
  • USD
  • RUB
  • EUR
  • 0-800-307-307 Hotline
  • +38 (044) 392-74-33 Kiev
  • +38 (057) 728-39-00 Kharkiv
  • +38 (056) 794-38-31 Dnipro
  • +38 (032) 229-58-93 Lviv
  • +38 (048) 738-57-70 Odessa
  • +38(093) 170-15-42  Life
  • +38 (067) 400-88-44 Kievstar
  • +1(888)393-24-51  USA, Toll free
  • +44(131)507-01-14  Great Britain
  • +7 (499) 348-28-61 Moscow

2.8.7. memory_limit

Parameter memory_limit sets the maximum amount of memory that can be used by site scripts. Limiting the amount of memory helps prevent situations in which poorly written scripts consume all available server memory.

How the limit works

The memory set in this value is allocated for each running script separately, so running multiple scripts cannot consume all the allocated memory_limit, but can consume all of the allocated RAM for the hosting account, which can be seen at consumption schedules server resources. It is important to understand that when the script is run, the amount of memory allocated under the memory limit is not "taken" from the RAM_limit.

Memory is allocated depending on the consumption of each script, but cannot exceed the specified limit, because the opinion is that by running two scripts with the size of memory_limit of 1024 will consume 2048 MB at once, which is fundamentally wrong. Determine in advance how much a site or script will need allocated RAM or memory values_limit is almost impossible, since it all depends on the data they process.

Parameter value:

  • The maximum value depends on the used tariff plan and can be in the range from 512 to 1536 MB in current tariff plans1) and from 64 to 256 MB in archive rates.
  • Does not affect the speed of scripts.
  • For console and cron when using PHP 5.6 and higher, the default is 512 MB.

Attention! If the site scripts exceed the available memory capacity, the error “Fatal error: Allowed memory size of XXX bytes exhausted (tried to allocate YYY bytes)". A description of the error and options for solving it can be found in instructions.

You can increase the parameter value:

  • Temporarily for 2 hours up to 256 MB with Turbo Boost (relevant for archive tariffs, where the maximum parameter value is 64 or 128 MB).
  • Permanently:
    • By transition for a higher tariff (descriptions of current tariffs can be found here).
    • By value changes memory_limit in PHP settings, if the text of the error indicates the volume less available at the current rate.

To change the value of memory_limit on the website, do the following:

  1. Go to the section "PHP settings»The site for which you want to change this setting.
  2. Find the parameter "php_memory_limit"And set the desired value:
  3. Save your changes.
  4. Wait approximately 10-15 minutes for the changes to take effect.

Available from 1st September 2019.