当前位置:网站首页>JMeter socket connection sends data
JMeter socket connection sends data
2022-06-25 00:20:00 【Dream_ xang】
Jmeter-Socket Connect to send data
This article introduces the following through Jmeter establish Socket Connect , Send to server 16 Hexadecimal data .
To configure TCP Connect
One 、 establish TCP Sampler configuration 
Two 、 Configuration instructions
TCPClient classname:TCP There are three ways to enable sending :
- TCPClientImpl: Text data , Default to this
- BinaryTCPClientImpl: transmission 16 Hexadecimal data , Specify package terminator . such 16 The hexadecimal file will pass Jmeter GUI To convert .
- LengthPrefixedBinaryTCPClientImpl: Front in packet 2 Bytes are the data length . Can be found in bin/jmeter.properties In profile tcp.binarylength.prefix.length Set up .
Target Server:TCP Fill in the server address in the sampler 、 port .
Connect: Set connection timeout .
Response: Set response timeout .
Re-use connection: Indicates that the connection is repeatedly used to send requests .
Close connection: It means that after sending this piece of data each time , Close the connection .
End of line(EOL) byte value: Terminator .
- Intercept the last byte according to the server return value , Notice if it is 16 Base number , It should be two characters
such as , In my project, the return value is changed to 16 The base case is as follows :
7e80010005013819415186010103e7020000d47e
So the last byte (8 position ) Should be 7e Conversion for 10 After the base number is 126, So in eol Set to 126.
Be careful : The terminator is a byte ,16 The hexadecimal number is greater than 7F(127) after , The EOL The value is negative. . such as : If the last byte returned by the server is 80, Change from single byte to decimal -128,EOL The value at should be filled in -128,.
If TCP The request requires a user name / password , You can fill in the login configuration .
establish TCP Connect
One 、 establish TCP Sampler
TCP The sampler has been configured , There is no need to fill in IP、PORT Equal parameter .
- Be careful : If you need to use the same connection to send data repeatedly , Every TCP Sampler's Re-use connection All need to be checked .

Establish a channel 1:
Two 、 Send signature data
Set to keep long connection , Set response timeout 2000ms.
send out 16 Hexadecimal text content , The response data terminator needs to be set , According to the response data, the last byte is converted to 10 Hexadecimal data .
边栏推荐
- Analysis report on operation pattern and supply and demand situation of global and Chinese cyano ketoprofen industry from 2022 to 2028
- 浅析大型IM即时通讯系统开发难度
- Approaching harvest moon:moonbeam DFI Carnival
- I suddenly find that the request dependent package in NPM has been discarded. What should I do?
- One way 和two way ANOVA分析的区别是啥,以及如何使用SPSS或者prism进行统计分析
- UE4 WebBrowser chart cannot display problems
- [Solved] Public key for mysql-community-xxx. rpm is not installed
- Design and practice of vivo server monitoring architecture
- 信号完整性(SI)电源完整性(PI)学习笔记(二十五)差分对与差分阻抗(五)
- [leaderboard] Carla leaderboard leaderboard leaderboard operation and participation in hands-on teaching
猜你喜欢

Design scheme of authority management of fusion model

Why are life science enterprises on the cloud in succession?

Ott marketing is booming. How should businesses invest?

JDBC —— 数据库连接

第三代电力电子半导体:SiC MOSFET学习笔记(五)驱动电源调研

∞ symbol line animation canvasjs special effect

Adding, deleting, modifying and checking in low build code

MySQL log management

UE4 WebBrowser图表不能显示问题

How does VR panorama make money? Based on the objective analysis of the market from two aspects
随机推荐
不重要的token可以提前停止计算!英伟达提出自适应token的高效视觉Transformer网络A-ViT,提高模型的吞吐量!...
第三代电力电子半导体:SiC MOSFET学习笔记(五)驱动电源调研
Overview of medium and low speed aerospace electronic bus
Global and Chinese tetrahydrofurfuryl butyrate industry operation pattern and future prospect report 2022 ~ 2028
Creative SVG ring clock JS effect
Modstart: embrace new technologies and take the lead in supporting laravel 9.0
Discrete mathematics and its application detailed explanation of exercises in the final exam of spring and summer semester of 2018-2019 academic year
Opengauss kernel: simple query execution
Do280openshift access control -- encryption and configmap
有趣的checkbox计数器
Fuxin Kunpeng joins in, and dragon lizard community welcomes a new partner in format document technical service
JPA learning 1 - overview, JPA, JPA core annotations, JPA core objects
D manual destruction may violate memory security
[proteus simulation] example of using timer 0 as a 16 bit counter
Human body transformation vs digital Avatar
Collection of software testing and game testing articles
Analysis report on the development trend and Prospect of cetamide industry in the world and China from 2022 to 2028
Is it so difficult to calculate the REM size of the web page according to the design draft?
∞ symbol line animation canvasjs special effect
Alternative to log4j