JMeter TCP Sampler reports 500 incorrectly

I use JMeter to download a test of our SMTP server using TCP Sampler (class BinaryTCPClientImpl) to start HELO, wait 30 seconds and then QUITing.

The SMTP server receives HELO and responds accordingly, while JMeter registers the correct response, however it does not seem to find the answer and instead accesses the response timeout and indicates a 500 failure for the request.

JMeter logs say:

ERROR - jmeter.protocol.tcp.sampler.TCPSampler:      org.apache.jmeter.protocol.tcp.sampler.ReadException:
at org.apache.jmeter.protocol.tcp.sampler.BinaryTCPClientImpl.read(BinaryTCPClientImpl.java:137)
at org.apache.jmeter.protocol.tcp.sampler.TCPSampler.sample(TCPSampler.java:350)
at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:416)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:271)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at org.apache.jmeter.protocol.tcp.sampler.BinaryTCPClientImpl.read(BinaryTCPClientImpl.java:123)

This is despite the fact that he managed to register the expected response!

I assume JMeter somehow did not notice the end of the answer?

Any thoughts on how to resolve or debug this will be greatly appreciated.

+3
source share
1 answer

EOM byte, , . , . EOM , .

+5

All Articles