• 孙大头头头-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

  • 相关阅读:
    【uniapp】改善中大型uniapp小程序项目开发体验
    vite试玩:老项目启动从6分钟到秒开
    修剪AST树减少webapck打包尺寸
    librispeech数据集下载
    语音识别性能评估方法
    2021.12.11 物联网考试
    2021.12.15 课程总结+加分项
    2021.12.9 观影大数据分析
    2021.12.8 Docker服务
    2021.12.10 阿里云服务器创建
  • 原文地址:https://www.cnblogs.com/renguiyouzhi/p/14799612.html
Copyright © 2020-2023  润新知