jmeter-java-dsl icon indicating copy to clipboard operation
jmeter-java-dsl copied to clipboard

Add support to TCP Sampler

Open LuccaPrado opened this issue 8 months ago • 3 comments

Hi, I loved the way that this makes easier to write and run tests, but it would be really useful to have support for TCP Sampler, the one that was a plugin and became part of default jmeter.

It's doable, right?

LuccaPrado avatar May 06 '25 17:05 LuccaPrado

Hi, thank you for your message! I'm glad to hear you like the tool.

Could you provide more context about the use case where you need the TCP Sampler?

We haven't provided support for that sampler so far because we assumed it wasn't widely used in the community. However, we might be wrong. If you could share more details, we might be able to implement something tailored to your use case.

In the meantime, you can check out the JMeterDSL wrapper module to use the TCP Sampler plugin.

andreig09 avatar May 06 '25 18:05 andreig09

Could you provide more context about the use case where you need the TCP Sampler?

Sure! For Financial Services, like Exchanges, it's really common to use Fix Protocol over TCP sockets, as the messages are asynchronous and usually need to deal with high speed and (or, in some cases) high volume. I was searching alternatives for writing some simple capacity tests, but, most of JMeter competitors don't even support tcp sockets. And JMeter without this tool have a really steep learning curve for a developer who just wants to see if there's any improvement that could be done.

Besides of what I said, this could bring a lot of fix users as potential clients for the supporting corporate of this project.

In the meantime, you can check out the JMeterDSL wrapper module to use the TCP Sampler plugin.

I started to try it out, but the use wasn't very clear (at least for me, I started to mess around with jmeter-java-dsl today). I'll try again in my spare time soon!

LuccaPrado avatar May 06 '25 23:05 LuccaPrado

Thank you for this information. We'll take this into account when setting support priorities.

I started to try it out, but the use wasn't very clear (at least for me, I started to mess around with jmeter-java-dsl today). I'll try again in my spare time soon!

Consider reaching out for support in the Discord server if you have any questions about how to use the wrapper.

andreig09 avatar May 13 '25 19:05 andreig09