---
title: "jmetet tcp sampler hex response 500"
author: "adla_bin"
date: "2018-05-30T16:37:21Z"
tags: []
categories: ["开源软件"]
slug: "jmetet-tcp-sampler-hex-response-500"
draft: false
lastmod: "2018-05-31T10:44:07Z"
id: 2423931
url: "https://adla-bin.iteye.com/blog/2423931"
---

测试tcp:

1.修改jmeter.properties

\# The default handler class  
#tcp.handler=TCPClientImpl  
tcp.handler=BinaryTCPClientImpl

 

2.设置EOL

2.1根据具体测试的程序设置EOM，例如本例中设置的为03

If you don't define the [EOM byte](http://jmeter.apache.org/api/org/apache/jmeter/protocol/tcp/sampler/AbstractTCPClient.html#useEolByte), it reads [until the end of the stream](http://jmeter.apache.org/api/org/apache/jmeter/protocol/tcp/sampler/BinaryTCPClientImpl.html#read%28java.io.InputStream%29). Since the stream isn't going to end, it times out. You have to set the EOM byte correctly for the protocol you're using.  
![](http://dl2.iteye.com/upload/attachment/0129/9447/fe140fea-8a6e-3f31-9600-0cddcf8b588b.png)  
 2.2 若没有结尾符，参考以下博客。未做验证，仅MARK.

https://blog.csdn.net/oshishuinianhua1234/article/details/79257680