zoukankan      html  css  js  c++  java
  • 读取redis中的数据时出现:MISCONF Redis is configured to save RDB snapshots

    读取redis中的数据时出现:MISCONF Redis is configured to save RDB snapshots 

     
    以下为异常详细信息:

    Exception in thread "main" redis.clients.jedis.exceptions.JedisDataException: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.

     
    产生时的条件:
     
    数据持续写入,读取速度远低于写入速度,持续1H以上(中途开了一个较长时间的会,一直写入数据,没管),内存占用量为80%。
     
    由于我目前并未对redis做详细深入理解,故根据网上资料说明:
     
    stop-writes-on-bgsave-error yes
     
    #默认情况下,如果在RDB snapshots持久化过程中出现问题,设置该参数后,Redis是不允许用户
    进行任何更新操作(set...)。避免人为强制停止redis 快照
     
     
    解决:
     
    进入redis  src目录下
     
    启动客户端:

    ./redis-cli

    输入:

    config set stop-writes-on-bgsave-error no

  • 相关阅读:
    一月5日
    一月5日
    面试java工程师的自我介绍(模拟篇)
    Spring Boot Jpa 介绍
    spring+redis做缓存使用
    Spring Boot Web 开发详解
    thymeleaf+spring的简单搭建
    如何搭建 Spring boot
    通用baseDao
    pagehelper的使用
  • 原文地址:https://www.cnblogs.com/Rozdy/p/5266126.html
Copyright © 2011-2022 走看看