• Resolved futureyoon

    (@futureyoon)


    Hi

    I am not sure why but I am getting this error every now and then (like at least once a day).

    PHP Fatal error: Uncaught RedisException: LOADING Redis is loading the dataset in memory in /bitnami/wordpress/wp-content/plugins/w3-total-cache/Cache_Redis.php:322

    and this will bring the website down unless I have to restart the server. the worst part is it brings down when it is off-working-hours.

    the redis memory was 512mb and I increaed to 1024mb. I thought it was due to insufficient memory but the issue still persists.

    I have no idea where else I need to look at. Any advice would be appreciated.

    Thank you

    • This topic was modified 11 months, 3 weeks ago by futureyoon.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @futureyoon

    I am sorry about the issue you are experiencing and I am happy to help!
    LOADING Redis is loading the dataset in memory”?error?occurs if connections requests reach before the system completely loads the dataset into memory and makes Redis ready for connections
    In most cases, a frequent display of the error message can be related to some recent changes made on the site in relation to Redis.

    The solution here would be to flush the Redis cache.

    To  Flush the Redis Cache, either the FLUSHDB or the  FLUSHALL commands could be used. FLUSHDB command deletes all the keys of the DBs selected and the FLUSHALL command deletes all the keys of all the existing databases, not just the selected one.

    The syntax for the commands are:

    redis-cli FLUSHDB
    redis-cli -n DB_NUMBER FLUSHDB
    redis-cli -n DB_NUMBER FLUSHDB ASYNC
    redis-cli FLUSHALL
    redis-cli FLUSHALL ASYNC

    For instance, to delete all the keys of a database #4 from the Redis cache, the syntax to be used is:

    $ redis-cli -n 4 FLUSHDB

    This will help to fix the issue. To prevent it from happening frequently, we need to revert the changes that were made earlier.

    Thanks!

    Thread Starter futureyoon

    (@futureyoon)

    Thank you for the info. I ran 2 of them and at least the system didnt crash last night. Thank you for that!

    redis-cli FLUSHDB
    redis-cli FLUSHALL

    Just curious that above commands are not running when “purge all caches” is performed?

    If so, maybe can this be part of option under Redis tab?

    Thank you

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @futureyoon

    Thank you for your feedback.
    No, this is not performed when purging all caches.

    FLUSHDB – Delete all the keys of the currently selected DB
    And flushing all cache, is triggering the flush of the cached content in the memory (page cache, object cache or whatever was used)

    This cannot be added to the W3TC as the W3 Total Cache only utilizes the Redis that needs to be installed and enabled on the server.

    I hope this explains this.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Fatal error: Uncaught RedisException: LOADING Redis is loading the dataset’ is closed to new replies.