Title: Memory limit
Last modified: June 10, 2021

---

# Memory limit

 *  Resolved [Fabricio10](https://wordpress.org/support/users/fabriciobarros10/)
 * (@fabriciobarros10)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/memory-limit-18/)
 * I use a ligtsail Aws with the following configurations: 4GB RAM, 2 vCPUs, 80GB
   SSD cPanel & WHM for Linux.
 * I have a virtual store with 1000 daily accesses and when entering woocomerce 
   status I verified that wordpress memory limit was at 1Gb.
 * So I went into wp-config and put the following lines
    define( ‘WP_MEMORY_LIMIT’,‘
   2g’ ); define( ‘WP_MAX_MEMORY_LIMIT’, ‘2g’ );
 * and in php.ini I changed memory_limit from 64m to 2g.
 * I’m not sure what I did, but I want my site to use as much memory as possible
   from my ligtsail. Can I increase it even more or should I not touch it?
 * my machine only runs whm + cpanel + wordpress

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Sol J. a11n](https://wordpress.org/support/users/solstudioim/)
 * (@solstudioim)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/memory-limit-18/#post-14540574)
 * Hi there [@fabriciobarros10](https://wordpress.org/support/users/fabriciobarros10/)
 * Thanks for your question!
 * > `I use a ligtsail Aws with the following configurations: 4GB RAM, 2 vCPUs, 
   > 80GB SSD cPanel & WHM for Linux.
   > I have a virtual store with 1000 daily accesses and when entering woocomerce
   > status I verified that wordpress memory limit was at 1Gb.
   > So I went into wp-config and put the following lines
   >  define( ‘WP_MEMORY_LIMIT’,‘
   > 2g’ ); define( ‘WP_MAX_MEMORY_LIMIT’, ‘2g’ );
   > and in php.ini I changed memory_limit from 64m to 2g.
   > I’m not sure what I did, but I want my site to use as much memory as possible
   > from my ligtsail. Can I increase it even more or should I not touch it?`
 * You can refer to the [server recommendation](https://docs.woocommerce.com/document/server-requirements/#section-1)
   here.
 * Personally, if you have 1000 daily visits to your store, memory limit set to 
   2GB should be sufficient.
 * And if your store grows, [WooCommerce can easily be scaled as well](https://docs.woocommerce.com/document/woocommerce-scaling-faqs/)!
 * I hope that helps!
 *  Thread Starter [Fabricio10](https://wordpress.org/support/users/fabriciobarros10/)
 * (@fabriciobarros10)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/memory-limit-18/#post-14544850)
 * [@solstudioim](https://wordpress.org/support/users/solstudioim/)
 * I read on a site that the bigger the wordpress memory is set the less ram is 
   left over for my site’s performance. So I returned my configuration to 1G for
   wordepress and 256M for PHP.
 * I don’t know if I did it right but I feel that this way my site is faster. Am
   I right?
 * I need the site to be fast, my instance has 4 gigs
 *  Plugin Support [slash1andy](https://wordpress.org/support/users/slash1andy/)
 * (@slash1andy)
 * Automattic Happiness Engineer
 * [4 years, 11 months ago](https://wordpress.org/support/topic/memory-limit-18/#post-14563725)
 * Hey again!
 * The memory allocated to PHP is essentially the same as the WordPress memory allocation.
 * WordPress sets the PHP memory limit to the WordPress allocation, as WordPress
   is the PHP application you’re running on your server.
 * So you can set it to 1GB for WordPress, and it will set the PHP one to 1GB.
 * If your server is allowed 4GB of RAM and you’re only running WordPress on it,
   you should be able to allocate all 4GB for your WordPress install.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Memory limit’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [slash1andy](https://wordpress.org/support/users/slash1andy/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/memory-limit-18/#post-14563725)
 * Status: resolved