title: How to set "KeepAlive" or similar parameter for jmeter Point-to-point sampler to re-use connections?
body: <p>My Jmeter script has a JMS point-to-point sampler that sends JMS message to an ActiveMQ queue. During the load test we realized that the Jmeter connections to the AMQ were neither getting closed nor were re-used, hence causing connection leak and eventually the messages were refused by the broker. I do not see any option in the sampler to say re-use or close-connection. Whats the way I can achieve this? I would appreciate any alternative to using point to point as well, such as a java sampler which may help achieve the same result.</p>
  <p>I expect the JMS connections created by Jmeter are re-used and avoid a connection leak. Any parameter similar to &quot;KeepAlive&quot; in http request available for JMS samplers?</p>
  <p>point to point sampler config below
  <a href="https://i.stack.imgur.com/MbJmd.png" rel="nofollow noreferrer">JMS Point to Point Sampler</a></p>