fshutdown / JMeter-WebSocketSampler

JMeter - WebSocket Sampler
Apache License 2.0
311 stars 191 forks source link

Sometimes websocket sampler throwing Null response while opening socket connection #24

Open ravikanthperf opened 10 years ago

ravikanthperf commented 10 years ago

Hi MaciejZaleski,

This websocket sampler is excellent and i have been waiting for this for a long time. I have downloaded and started to use this.

websockets are implemented using engine IO libraries in my application. sometimes sampler works fine and gives proper response for the requests. But sometimes it throws null response as shown below while opening websocket connection. Please give me a solution for this why it is happening intermittently. do you think that when existing connection is still open while opening another connection, is this happened?

Thread Name: Thread Group 1-1 Sample Start: 2014-05-08 22:08:11 PDT Load time: 10073 Latency: 0 Size in bytes: 2666 Headers size in bytes: 0 Body size in bytes: 2666 Sample Count: 1 Error Count: 1 Response code: Response message:

[Execution Flow]

[Variables]

[Problems]

Response headers:

SampleResult fields: ContentType: DataEncoding: UTF-8

ravikanthperf commented 10 years ago

can you please respond on this?

AnnaDev commented 9 years ago

Any resolution on the above issue? I am seeing the same error message

Thread Name: Thread Group 1-1 Sample Start: 2015-03-20 13:43:39 EDT Load time: 5015 Connect Time: 0 Latency: 0 Size in bytes: 0 Headers size in bytes: 0 Body size in bytes: 0 Sample Count: 1 Error Count: 1 Response code: Response message:

[Execution Flow]

[Variables]

[Problems]

Response headers:

SampleResult fields: ContentType: DataEncoding:

tahsintahsin commented 9 years ago

+1

peer2peer commented 8 years ago

+1

peer2peer commented 8 years ago

When the thread group with many number of threads, the issue happened. But if I set the thread number as 1, the issue will never happen. What's the cause?

Thanks!!!!!!

Thread Name: Thread Group 1-2 Sample Start: 2015-08-23 10:40:31 CST Load time: 5039 Connect Time: 0 Latency: 0 Size in bytes: 0 Headers size in bytes: 0 Body size in bytes: 0 Sample Count: 1 Error Count: 1 Response code: Response message:

[Execution Flow]

[Variables]

[Problems]

Response headers:

SampleResult fields: ContentType: DataEncoding: UTF-8

ceritandogan commented 8 years ago

According to my experiences , There could be 2 reasons: 1)Server could return HTTP 500: Check your server log. if you can't, use Wireshark to see the error.

2)Server could return HTTP 400: You could override some server header or another connectionId error. Header "Host" can cause sometimes problems.

Call the same url that you generated in browser.

Raul666 commented 8 years ago

Im facing also the same errors. Connection with the socket is not happening and i m getting the following errors in jmeter. [Problems]

getsuriya commented 8 years ago

+1

x00350069 commented 8 years ago

when I choose this :all went well image

MWhyte commented 7 years ago

+1 using spring / sockjs / stomp

utsavkansara commented 6 years ago

@MWhyte wondering how did you configure testplan to use spring / sockjs / stomp

kiennt23 commented 6 years ago

+1. Having the same issue. Using spring/sockjs/stomp