Title: Redis object cache memory usage increase after installing the plugin
Last modified: May 29, 2024

---

# Redis object cache memory usage increase after installing the plugin

 *  Resolved [alinnz](https://wordpress.org/support/users/alinnz/)
 * (@alinnz)
 * [2 years ago](https://wordpress.org/support/topic/redis-object-cache-memory-usage-increase-after-installing-the-plugin/)
 * Hello, I had installed index wp mysql and index user plugins and it went well.
   Performance of admin dashboard usage became pretty fast. But memory usage became
   increase (usual 40-45% of 4gb ram to 85%). Most memory usage is due to redis 
   object cache. At 85% memory usage, I have to disable redis cache and reconnect.
   After cleaning up redis object cache, server memory went down to 35%. After that
   it increased slowly again upto 85% during about 24hours.
 * Also, my database buffer pool size is only 125mb and database size is 3Gb. Should
   I increase buffer pool size or change redis configuration? Please help advice
   me!
 * Site monitored metadata was uploaded and its id is KCQjeqMM. Thank for this awesome
   plugin.
    -  This topic was modified 2 years ago by [alinnz](https://wordpress.org/support/users/alinnz/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fredis-object-cache-memory-usage-increase-after-installing-the-plugin%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [OllieJones](https://wordpress.org/support/users/olliejones/)
 * (@olliejones)
 * [2 years ago](https://wordpress.org/support/topic/redis-object-cache-memory-usage-increase-after-installing-the-plugin/#post-17789139)
 * Thanks for the uploads. I guess you run your site, including web server, php,
   MariaDB, and redis, on a single virtual machine with 4GiB of RAM. If that is 
   incorrect, please let me know.
 * You need to configure your redis cache server so it “evicts” data from the cache
   rather than just continuing to fill up your RAM. Look here [https://raw.githubusercontent.com/redis/redis/7.2/redis.conf](https://raw.githubusercontent.com/redis/redis/7.2/redis.conf)
   for the `maxmemory` and `maxmemory-policy` settings. With a 4GiB server I would
   set them as follows:
 * `maxmemory 512mb`
   `maxmemory-policy allkeys-lfu`
 * This will limit redis to half a GiB of RAM, which should help. That is a very
   big cache. (I am puzzled by redis’s use of RAM on your system, it seems high.)
 * You should also increase your innodb_buffer_pool_size, as you mentioned. If I
   were you I would try setting it to 1GiB. This will allow a larger fraction of
   your content to be retrieved from the buffer pool rather than having to read 
   it from SSD/HDD. Background. [https://mariadb.com/kb/en/innodb-buffer-pool/](https://mariadb.com/kb/en/innodb-buffer-pool/)
 * Please let me know if these suggestions help you.
 *  Thread Starter [alinnz](https://wordpress.org/support/users/alinnz/)
 * (@alinnz)
 * [2 years ago](https://wordpress.org/support/topic/redis-object-cache-memory-usage-increase-after-installing-the-plugin/#post-17790887)
 * Thank for your suggestion, Sir. I will try to follow your advice.
 *  Plugin Author [OllieJones](https://wordpress.org/support/users/olliejones/)
 * (@olliejones)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/redis-object-cache-memory-usage-increase-after-installing-the-plugin/#post-17855902)
 * I haven’t heard back from you, so I’m marking this thread “resolved”. If I can
   help you further please don’t hesitate to start a new thread.

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

The topic ‘Redis object cache memory usage increase after installing the plugin’
is closed to new replies.

 * ![](https://ps.w.org/index-wp-mysql-for-speed/assets/icon-128x128.png?rev=2652667)
 * [Index WP MySQL For Speed](https://wordpress.org/plugins/index-wp-mysql-for-speed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/index-wp-mysql-for-speed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/index-wp-mysql-for-speed/)
 * [Active Topics](https://wordpress.org/support/plugin/index-wp-mysql-for-speed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/index-wp-mysql-for-speed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/index-wp-mysql-for-speed/reviews/)

## Tags

 * [redis](https://wordpress.org/support/topic-tag/redis/)

 * 3 replies
 * 2 participants
 * Last reply from: [OllieJones](https://wordpress.org/support/users/olliejones/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/redis-object-cache-memory-usage-increase-after-installing-the-plugin/#post-17855902)
 * Status: resolved