zoukankan      html  css  js  c++  java
  • 004_zookeeper运维之maxClientCnxns overflow

    一、

    线上默认设置:maxClientCnxns=120   #可通过修改这个值来进行解决

    二、

    在10.103.110.51这个ip上执行以下命令,进行查看连接情况

    [root@10.103.101.94 ~]# netstat -napee | awk '{if ($5 == "10.103.101.93:2181") print $9;}'
    -
    -
    -
    -
    -
    3186006/gunicorn:
    -
    -
    -
    -
    -
    3186089/gunicorn:
    -
    -
    -
    3186002/gunicorn:
    [root@10.103.101.94 ~]# netstat -napee | awk '{if ($5 == "10.103.101.93:2181") print $9;}'|wc -c
    160
    [root@alta1-biz-zoom-1 ~]# echo "stat" | nc 10.103.101.93 2181
    Zookeeper version: 3.4.9-1757313, built on 08/23/2016 06:50 GMT
    Clients:
     /10.103.110.51:24051[1](queued=0,recved=94,sent=94)
     /10.103.110.51:24149[0](queued=0,recved=1,sent=0)
     /10.103.110.51:24054[1](queued=0,recved=94,sent=94)
     /10.103.110.51:24053[1](queued=0,recved=94,sent=94)
    [root@alta1-biz-zoom-1 ~]# echo "cons" | nc 10.103.101.93 2181
     /10.103.102.214:47600[1](queued=0,recved=273,sent=273,sid=0x4262cde3063c0008,lop=GETD,est=1523872662825,to=10000,lcxid=0x10f,lzxid=0x2e0156864d,lresp=1523872663000,llat=0,minlat=0,avglat=0,maxlat=2)
     /127.0.0.1:21533[1](queued=0,recved=2,sent=2,sid=0x4262cde3063c0003,lop=GETC,est=1523872654572,to=30000,lcxid=0x1,lzxid=0x2e015685ea,lresp=1523872658103,llat=50,minlat=0,avglat=48,maxlat=50)
     /10.103.110.51:48686[0](queued=0,recved=1,sent=0)
     /127.0.0.1:21166[1](queued=0,recved=0,sent=0)
    

    参考:https://community.hortonworks.com/articles/51191/understanding-apache-zookeeper-connection-rate-lim.html

  • 相关阅读:
    Spring基础篇——AOP切面编程
    像我这样的人
    Java 内部类
    SQLite 带你入门
    Spring基础篇——通过Java注解和XML配置装配bean
    Spring基础篇——自动化装配bean
    VMware虚拟机+CentOS系统安装
    Spring基础篇——Spring容器和应用上下文理解
    Spring基础篇——DI/IOC和AOP原理初识
    Web 项目刚要打包,却找不到项目资源?
  • 原文地址:https://www.cnblogs.com/itcomputer/p/8857664.html
Copyright © 2011-2022 走看看