Title: WP_MEMORY_LIMIT in config.php
Last modified: July 14, 2019

---

# WP_MEMORY_LIMIT in config.php

 *  Resolved [johannes68](https://wordpress.org/support/users/johannes68/)
 * (@johannes68)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wp_memory_limit-in-config-php/)
 * 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 [sminozzi](https://wordpress.org/support/users/sminozzi/)
 * (@sminozzi)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wp_memory_limit-in-config-php/#post-11730022)
 * Hi,
    Thanks for letting me know. I will run tests and let you know in 1 business
   day. Cheers, Bill
 *  Plugin Author [sminozzi](https://wordpress.org/support/users/sminozzi/)
 * (@sminozzi)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wp_memory_limit-in-config-php/#post-11732735)
 * 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://wordpress.org/plugins/wp-memory/](https://wordpress.org/plugins/wp-memory/)
 * Cheers,
    Bill
    -  This reply was modified 6 years, 11 months ago by [sminozzi](https://wordpress.org/support/users/sminozzi/).
 *  Plugin Author [sminozzi](https://wordpress.org/support/users/sminozzi/)
 * (@sminozzi)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/wp_memory_limit-in-config-php/#post-12010071)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/stopbadbots_f0f0f0.svg)
 * [Block Bad Bots and Stop Bad Bots Crawlers and Spiders and Anti Spam Protection](https://wordpress.org/plugins/stopbadbots/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/stopbadbots/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/stopbadbots/)
 * [Active Topics](https://wordpress.org/support/plugin/stopbadbots/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stopbadbots/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stopbadbots/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [sminozzi](https://wordpress.org/support/users/sminozzi/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/wp_memory_limit-in-config-php/#post-12010071)
 * Status: resolved