• Resolved johannes68

    (@johannes68)


    Hi,
    i just noticed if i use “1G” (1 gigabyte) as value for WP_MEMORY_LIMIT in config.php, it doesnt recognize it in the backend.
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Bill Minozzi

    (@sminozzi)

    Hi,
    Thanks for letting me know.
    I will run tests and let you know in 1 business day.
    Cheers,
    Bill

    Plugin Author Bill Minozzi

    (@sminozzi)

    Hi,

    You need edit this file, usually in the root folder.
    wp-config.php
    You need to write in MB, not G. For example:

    define(‘WP_MEMORY_LIMIT’, ‘1024M’);
    I suggest this number:
    define(‘WP_MEMORY_LIMIT’, ‘256M’);
    Please, read below …

    Some suggestions about Memory Limit:
    1) Your WordPress memory limit cannot exceed your PHP memory limit. The php memory limit can be set, for example, editing your php.ini file.
    For example:
    memory_limit 512M
    For details about it, talk with your hosting company.

    2) PHP memory_limit is per-script. For example, although PHP’s memory limit may be set high to 1GB, that does not mean that scripts will pile up to use that 1GB. This helps prevent poorly written scripts for eating up all available memory on a server… Then, I guess 256M is a good number for PHP ini and WP memory limit.

    3) Your server need be free memory bigger than PHP Memory limit.
    It’s important to understand that increasing the amount of memory each PHP process can use decreases the number of concurrent processes that can run.

    We have this free WP plugin to help you to control your memory limit:
    https://www.ads-software.com/plugins/wp-memory/

    Cheers,
    Bill

    • This reply was modified 5 years, 4 months ago by Bill Minozzi.
    Plugin Author Bill Minozzi

    (@sminozzi)

    I hope this is sorted, gonna go ahead and mark as “resolved” to help keep things organized. Feel free to post again with any further questions or feedback, etc. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP_MEMORY_LIMIT in config.php’ is closed to new replies.