SocketException: Connection reset

Discussion in 'Java' started by fb1800, Dec 8, 2010.

  1. fb1800

    fb1800

    Joined:
    Dec 8, 2010
    Messages:
    1
    Hi,

    I am currently working on a Server/Client application on a cluster

    I am running about 100 clients in parallel and one server (32 clients per node with 8 processor => 4 clients per processor) . The server is linked to all the clients via Sockets.

    After about 55 iteration (about 20 mins), i have a client dying and i receive the following error:

    Client 126 java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:168)
    at java.net.SocketInputStream.read(SocketInputStream.java:182)
    at java.io_ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2249)
    at java.io_ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2542)
    at java.io_ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2552)
    at java.io_ObjectInputStream.readObject0(ObjectInputStream.java:1297)
    at java.io_ObjectInputStream.readObject(ObjectInputStream.java:351)
    at ServerClient.Server$TcpThread.run(Server.java:789)
    Connection reset


    the Server.java.789 is : ServerThread.sockIn.readObject();


    Do you have any idea what could create the connection reset ? The other clients are still running. It seems that the client socket is creating an exception when we try to read a file which actually does not exist.

    My main question is what are the method to identify the problem related to this specific socket (note that I am working on a cluster, hence accessing the node via ssh connection and without having admin access).

    I dont understand why suddenly one client would die. It was working well during 20 minutes and suddenly one die ? Do you have any idea and any advice on how to identify the reset of this Socket disconnection ?

    I though about using wireshark but the fact that the application is running on a cluster make it difficult to analyze,sniff the packets remotely. I dont know if i can do it remotely.

    Do you have any idea how I could debug this problem?

    Thanks.
     
    fb1800, Dec 8, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ckumar
    Replies:
    4
    Views:
    42,005
    ckumar
    Feb 24, 2005
  2. bigBrother82

    SocketException: Connection reset

    bigBrother82, Nov 5, 2005, in forum: Java
    Replies:
    1
    Views:
    4,491
    Roedy Green
    Nov 5, 2005
  3. JPractitioner
    Replies:
    2
    Views:
    1,119
    Gordon Beaton
    Jan 18, 2006
  4. ilianaza@gmail.com

    java.net.SocketException: Connection reset

    ilianaza@gmail.com, Jan 31, 2007, in forum: Java
    Replies:
    0
    Views:
    1,631
    ilianaza@gmail.com
    Jan 31, 2007
  5. Roland
    Replies:
    4
    Views:
    16,193
    Esmond Pitt
    May 3, 2007
Loading...

Share This Page