GridGain Community Edition

Expand all | Collapse all

"Connection Reset by Peer"

  • 1.  "Connection Reset by Peer"

    Posted 27 days ago
    Hi All,
     
    I would like to know in which case the "Connection reset by peer" exception will occur? What is the influence of "Connection reset by peer" and how to solve it?
     
    Thanks!

    ------------------------------
    Qiaoqiao Sun
    office staff
    ASUS Technology
    ------------------------------


  • 2.  RE: "Connection Reset by Peer"

    Posted 25 days ago
    Hello!

    Usually it means that your TCP stack has decided to close connection which was not explicitly closed by application code.

    WRT solving it, you need to understand where it happens first. Can you show a stack trace?

    Regards,

    ------------------------------
    Ilya Kasnacheev
    Community Support Specialist
    GridGain
    ------------------------------



  • 3.  RE: "Connection Reset by Peer"

    Posted 21 days ago
    Hello, thanks for your reply!
     
    The scene we use is to gradually increase the number of Ignite client nodes, establish a socket connection with the Ignite server cluster, and then read and write data. The upper limit of the number of client nodes and connections we set is 4000. Is this number of connections too high?
     
    The error message of the call stack is as follows:
     
    java.io.IOException: Connection reset by peer
    at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
    at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
    at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
    at sun.nio.ch.IOUtil.read(IOUtil.java:192)
    at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:377)
    at org.apache.ignite.internal.util.nio.GridNioServer$DirectNioClientWorker.processRead(GridNioServer.java:1340)
    at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.processSelectedKeysOptimized(GridNioServer.java:2480)
    at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.bodyInternal(GridNioServer.java:2247)
    at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.body(GridNioServer.java:1888)
    at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:119)
    at java.lang.Thread.run(Thread.java:748) 
     
    Best regards ,

    ------------------------------
    Qiaoqiao Sun
    office staff
    ASUS Technology
    ------------------------------



  • 4.  RE: "Connection Reset by Peer"

    Posted 21 days ago
    Hello!

    It is possible that your TCP stack has decided you are having too many connections and started shutting down some of those. However, "connection reset by peer" is outside of control by GridGain, we can only react to this event. You probably need to tune your network.

    Regards,

    ------------------------------
    Ilya Kasnacheev
    Community Support Specialist
    GridGain
    ------------------------------