• 孙大头头头-redis病了,诊断开始


    默认redis配置文件没有配置logfile. 先给它配置上,然后从新启动。让日志告诉你他哪里不舒服

    6308:C 22 May 19:31:05.982 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
    6308:C 22 May 19:31:05.982 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=6308, just started
    6308:C 22 May 19:31:05.982 # Configuration loaded
    6308:M 22 May 19:31:05.983 * Increased maximum number of open files to 10032 (it was originally set to 1024).
                    _._                                                  
               _.-``__ ''-._                                             
          _.-``    `.  `_.  ''-._           Redis 4.0.9 (00000000/0) 64 bit
      .-`` .-```.  ```/    _.,_ ''-._                                   
     (    '      ,       .-`  | `,    )     Running in standalone mode
     |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
     |    `-._   `._    /     _.-'    |     PID: 6308
      `-._    `-._  `-./  _.-'    _.-'                                   
     |`-._`-._    `-.__.-'    _.-'_.-'|                                  
     |    `-._`-._        _.-'_.-'    |           http://redis.io        
      `-._    `-._`-.__.-'_.-'    _.-'                                   
     |`-._`-._    `-.__.-'    _.-'_.-'|                                  
     |    `-._`-._        _.-'_.-'    |                                  
      `-._    `-._`-.__.-'_.-'    _.-'                                   
          `-._    `-.__.-'    _.-'                                       
              `-._        _.-'                                           
                  `-.__.-'                                               
    
    6308:M 22 May 19:31:05.983 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
    6308:M 22 May 19:31:05.983 # Server initialized
    6308:M 22 May 19:31:05.984 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
    6308:M 22 May 19:31:05.984 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
    6308:M 22 May 19:31:35.265 * DB loaded from disk: 29.281 seconds
    6308:M 22 May 19:31:35.265 * Ready to accept connections

     警告1:The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. 它说自己不舒服了

    诊断:

    参考老中医:

    https://blog.csdn.net/weixin_32457139/article/details/116846420

  • 相关阅读:
    react-native 调用原生方法
    react-native 生命周期
    查看ubuntu系统信息
    Python之DataFrame将列作为索引
    Python之读取文本文件
    Python 之 直接赋值、Deepcopy、Copy区别
    Python之time与datetime模块
    Python之连接MySQL数据库,执行建表语句
    Python之读取csv文件
    MySQL之count() 函数
  • 原文地址:https://www.cnblogs.com/renguiyouzhi/p/14799612.html
Copyright © 2020-2023  润新知