• Resolved Fabricio10

    (@fabriciobarros10)


    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

    (@solstudioim)

    Hi there @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 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!

    I hope that helps!

    Thread Starter Fabricio10

    (@fabriciobarros10)

    @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

    (@slash1andy)

    Automattic Happiness Engineer

    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.