Title: wp memory
Last modified: January 21, 2019

---

# wp memory

 *  [Alwin](https://wordpress.org/support/users/wp-opti/)
 * (@wp-opti)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/wp-memory/)
 * I have some questions about wp_memory_limit and php_memory settings.
 * I have this situation:
 * – php memory is 512MB max, set by my webhost
    – wp_memory_limit by default is
   40MB (like set in wp-includes/default-constants.php)
 * Considering these 2 settings I have this questions:
 * – What happens when I change nothing? Will WordPress use just 40MB and will not
   use most of the 512MB memory then?
 * – Or does WordPress overwrite the 40MB setting in wp-includes/default-constants.
   php if a higher value is set in php.ini (512MB)?
 * – If WordPress does not overwrite the the 40MB setting, do I have to add “define(‘
   WP_MEMORY_LIMIT’, ‘xxxM’);” to my wp-config file?
 * – And must the value in “define(‘WP_MEMORY_LIMIT’, ‘xxxM’);” be the same as the
   maximum available php memory (512MB) or is it better to set the value lower and
   save some memory for other tasks?
 * Thank you very much for your help 🙂
 * Alwin
    -  This topic was modified 7 years, 6 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
      Reason: moved from developing to everything else

Viewing 1 replies (of 1 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 6 months ago](https://wordpress.org/support/topic/wp-memory/#post-11113883)
 * If you want to use more than the default 40MB of memory for your site, then you
   need to tell WP to use more. If you’re not getting errors, then you don’t to 
   change anything. If memory issues do occur, then try bumping it up to 128 or 
   256 or 512 if necessary. If WP needs the memory, it needs it. If it’s not using
   it, it’s not used, so you’re not “saving it”.

Viewing 1 replies (of 1 total)

The topic ‘wp memory’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/wp-memory/#post-11113883)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
