abstracta / jmeter-java-dsl

Simple JMeter performance tests API
https://abstracta.github.io/jmeter-java-dsl/
Apache License 2.0
477 stars 59 forks source link

getting socket connection closed when using rpsThreadGroup #262

Closed mhkhan4 closed 6 months ago

mhkhan4 commented 7 months ago

When I use: threadGroup(50, Duration.ofSeconds(10)

I see no issues it works fine, 100% of the time.

But when I use rpsThreadGroup, even though there are so much less throughput gets generated most of the time we see socket connection closed error:

rpsThreadGroup()
     .maxThreads(50)
     .rampToAndHold(10, Duration.ofSeconds(5), Duration.ofSeconds(10))
     .children( httpSampler("http://my.service") ) 

I'm seeing this error in the jtl file: 1711817935380,773,[GET] /alerts,Non HTTP response code: java.net.SocketException,Non HTTP response message: Socket closed,cba-alerts [AtomicTests]-ThreadStarter 1-6,text,false,,3172,0,7,7, [http://myServer/v1/alerts,0,0,0](http://myserv/v1/alerts,0,0,0)

Tried increasing the time for connectionTimeOut configuration, but it didn't solve the issue

rabelenda commented 7 months ago

Hello, this might be related to this issue.

Can you try with the NonInterruptingRpsThreadGroup included this comment of the issue and let us know if you keep seeing the exception?

rabelenda commented 6 months ago

Hello, have you tried it?

If I don't get an answer I will consider this issue as closed.