WebSocket I/O error: end of stream

Issue #71 closed
Former user created an issue

Hi,

I am getting following error in Jmeter: (For some time it runs fine then after some time it start giving error, not sure why)

Response code: Websocket I/O error Response message: WebSocket I/O error: end of stream

Please let me know if there is any solution which can be implemented to avoid this or any suggestion for probable root cause?

Regards

Comments (4)

  1. Peter Doornbosch repo owner

    Hi,

    This is not a bug; it means that the server closed the connection. It could be that the server can't handle the load, which means your test was successful (in the sense that it discovered a problem in the server-under-test) ;-).

    Peter

  2. Sunil Account Deactivated

    Hi, Thanks for clarification.

    Is there any way this error is because of System issue, Jmeter issue, Sampler issue but not server issue?

    Regards

  3. Peter Doornbosch repo owner

    Hi,

    • system issue: it could be that you system or network cannot handle the load (e.g. number of connections), but in that case i'd expect an error message like "connection closed by peer". The "end of stream" message usually means that the peer has properly closed the connection.
    • JMeter issue: no, JMeter is just running the Samplers
    • Sampler issue: of course there can always be bug that i haven't seen before, but i think it's pretty unlikely in this case. Note that this plugin has been used to run tests with thousands concurrent websocket connections, so it's thoroughly tested.

    The only way to find out is to use a tool like WireShark or tcpdump and analyse the network traffic. I'd expect the server to send a TCP close (or maybe a TCP reset).

    But i'd advise to start checking server logs first; that might give a clue and it a lot easier than analysing WireShark dumps ;-)

    Good luck, Peter

  4. Log in to comment