zoukankan      html  css  js  c++  java
  • 孙大头头头-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

  • 相关阅读:
    zjnu1725 COCI (类似二维树状数组模拟)
    zjnu1730 PIRAMIDA(字符串,模拟)
    hdu5365Shortest Path (floyd)
    表达式的转换 (模拟题)
    zjnu1709 UZASTOPNI (bitset,树形dp)
    zjnu1707 TOPOVI (map+模拟)
    zjnu1716 NEKAMELEONI (线段树)
    zjnuSAVEZ (字符串hash)
    codeforces 55D. Beautiful numbers (数位dp)
    TP5将入口文件放在Public中,能得到那些安全保障?
  • 原文地址:https://www.cnblogs.com/renguiyouzhi/p/14799612.html
Copyright © 2011-2022 走看看