Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #163366 Reply
    Sergx81
    Guest

    hi, what is causing this? should we increase the memory limit or is there a better solution?

    PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 532480 bytes) in /var/www/vhosts/federacionanarquista.net/httpdocs/wp-content/plugins/w3-total-cache/Cache_Redis.php on line 150

    #163427 Reply

    Hello,

    Thank you for reaching out, and I am happy to help!
    This depends on how big the website is, so if the website has a huge theme or a lot of plugins, it’s quite possible that the memory limit was reached.
    Also, which module are you using Redis as a caching method for in W3 Total Cache?
    It’s also possible that the Redis memory is bloated, so you should also check this
    Check Redis memory usage

    redis-cli info memory
    redis-cli info stats

    See if your Redis instance is bloated.

    Sometimes, memory is genuinely too low for your site’s workload. If after cleaning up the cache usage, you still hit the limit, raising to 768M or 1G is fine:

    memory_limit = 1G

    in php.ini or

    I hope this helps!

    Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Memory exhausted fatal error from Cache_Redis.php:150
Your information: