GitHub user mybreeze77 opened a pull request:
https://github.com/apache/jmeter/pull/434
Truncate response message to avoid too large udp package using
UdpMetricsSender
In JMeter, we can use "BackendListener - InfluxdbBackendListenerClient -
UdpMetricsSender" to send data as udp to InfluxDB. As we know, UDP package max
size is limited to the MTU (about 1500 bytes). So if is possible to exceed it,
for below example.
`
jmeter,application=application,transaction=all,statut=all
count=304,countError=304,hit=304,sb=39216,rb=106688,pct95.0=13.0,pct99.0=16.969999999999985,pct90.0=12.900000000000006
1542959710708000000
jmeter,application=application,statut=all,transaction=HTTP\ Request
count=304,avg=8.8,min=6.0,max=17.0,sb=39216,rb=106688,pct95.0=13.0,pct99.0=16.969999999999985,pct90.0=12.900000000000006
1542959710709000000
jmeter,application=application,statut=ko,transaction=HTTP\ Request
count=304,avg=8.8,min=6.0,max=17.0,pct95.0=13.0,pct99.0=16.969999999999985,pct90.0=12.900000000000006
1542959710710000000
jmeter,application=application,transaction=HTTP\
Request,responseCode=404,responseMessage=Vvvvvvvvvvvvvvvvvvvvvvvvvvvvvery
llllllllllllllllllllllllllllllllllong mmmmmmmmmmmmmmmmmmmmmmessage count=304
1542959710710000000
jmeter,application=application,transaction=internal
minAT=1,maxAT=1,meanAT=1,startedT=1,endedT=0 1542959710710000000
`
We will get below error and data are not sent to InfluxDB.
> 2018-09-28 23:53:29,743 ERROR o.a.j.v.b.i.UdpMetricsSender: Error in
transferring udp package
> java.io.IOException: Message too long
Considering the size of other fields/tags are under control, it will be
better if we truncate the response message to about 50 bytes when it is too
large (Only for udp sender).
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mybreeze77/jmeter fixudp
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/jmeter/pull/434.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #434
----
commit 1ba4b514714c3466fd90c435bf8bec922494a27e
Author: Junlong Wu <junlong.wu@...>
Date: 2018-11-23T09:24:35Z
Truncate response message to avoid too large udp package using
UdpMetricsSender
----
---