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

getting socket connection closed when using rpsThreadGroup

Open mhkhan4 opened this issue 1 year ago • 2 comments

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

mhkhan4 avatar Mar 30 '24 02:03 mhkhan4

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 avatar Apr 03 '24 12:04 rabelenda

Hello, have you tried it?

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

rabelenda avatar Apr 29 '24 15:04 rabelenda