WordPress allocates 32 MB memory for PHP by default. If it runs into any crunches, it’ll automatically try to increase this limit to 40 MB (for a single site) or 64 MB (for a multisite).
In most cases, this memory limit won’t be enough for a WooCommerce site. You may even receive an error message on your dashboard such as:
“Allowed memory size of X bytes exhausted”
It’s recommended to increase this limit to 256 MB. Always do a backup of any file before you edit it. In case something goes wrong, you can replace the edited file with the original one.