Why the tcp keep-alive connection will be automaticly closed after the junit sampler was executed by jmeter?

647 views
Skip to first unread message

Ma Haiyin

unread,
Aug 22, 2013, 8:21:51 AM8/22/13
to jmeter-...@googlegroups.com

I has written a junit case that create a tcp keepalive connection and send a simple string.

But when I run the junit case in jmeter, I found that the tcp connection object will be disposed and closed after the test case was executed.

Although I have tried to resolve it, I can‘t find any usable information.

Maybe the problem can be stated as "How to test the tcp keepalive connection by using Jmeter JUnit Sampler instead of Jmeter tcp sampler?"

carlos.rodrig...@gmail.com

unread,
Jan 27, 2015, 11:03:01 AM1/27/15
to jmeter-...@googlegroups.com
I faced the same problem with TCP sampler (jmeter), socket is closed after request even when we used "re-use connection". 

Did you find useful "JUnit Request"?

Thanks,
Reply all
Reply to author
Forward
0 new messages