• Skip to primary navigation
  • Skip to main content
  • Skip to footer

JohnnyVPS

ULTRA-fast WordPress Hosting

  • Features
  • Pricing
  • Support
  • Reviews
  • Sign Up

Increase WordPress memory limits

Posted on June 19, 2021 by Johnny Nguyen

How to increase your WordPress memory limit. Useful if you’re seeing “memory exhausted” messages in your page load or error_log.

Open up wp-config.php file:

  • Scroll down to /* That's all, stop editing! Happy publishing. */
  • And above that line, paste the code below…
define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

Looking for ultra-fast WordPress hosting?

Learn More About JVPS

Post navigation

←Previous

Use a real cron job instead of WP-cron

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Footer

Features

  • Speed
  • Reliability
  • Security
  • …see all.

Comparisons

  • WP Engine
  • Flywheel
  • SiteGround
  • Cloudways

Support

  • Documentation
  • Facebook group
  • Submit a Ticket
  • Slack

Company

  • About JVPS
  • Blog
  • FAQ
  • Terms

JohnnyVPS

Boutique webhost specializing in speed, reliability, and security. Servers in USA, Europe, Asia, and Australia!

Contact Us

© 2026 JohnnyVPS. All rights reserved.

Media Affiliates Newsletter Facebook Twitter
GDPR Cookie Banner

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .