zoukankan      html  css  js  c++  java
  • 线上zk节点报org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:187) at java.lang.Thread.run(libgcj.so.10)

      线上zk做配置管理,最近突然发现两个节点一直在刷下边

    java.nio.channels.CancelledKeyException 
       at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.10) 
       at 
    org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:187) 
       at java.lang.Thread.run(libgcj.so.10) 

    异常,经查发现网上相关问题处理方式为:

    Hello 
    I am sending this to the mailing list in case other people in the future 
    have this problem 
    I had been seeing this error: 
    java.nio.channels.CancelledKeyException 
       at gnu.java.nio.SelectionKeyImpl.readyOps(libgcj.so.10) 
       at 
    org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:187) 
       at java.lang.Thread.run(libgcj.so.10) 

    and it was causing writes to be slow 

    After some digging I found it was because I was using an outdated version 
    of java: upgrading from 1.5 to 1.7 fixed this 

    相关连接:

    http://zookeeper-user.578899.n2.nabble.com/solution-for-java-nio-channels-CancelledKeyException-td7580505.html

  • 相关阅读:
    nginx 详解
    阿里云 消息队列mq
    手机浏览器Yandex安装插件说明
    windows下JAVA环境变量配置
    共享文件夹免密登入
    自动添加静态路由
    加入WSUS补丁服务器并下载补丁
    加入时间同步服务器(NTP)
    更改rdp端口
    关闭及开启445等危险端口
  • 原文地址:https://www.cnblogs.com/freedommovie/p/6627297.html
Copyright © 2011-2022 走看看