Jmeter: use the same ConnectionFactory for multiple threads when sending JMS messages

I use the JMS two-point Jmeter sampler to test performance if a large number of JMS messages are sent to the queue.

Jmeter is currently creating a new QueueConnectionFactory and QueueConnection for each thread (according to the number of threads provided). I think this is not how it goes through an interface where a single factory connection handles different threads.

How to make sure that it creates only one connection for all threads? Is there any option in jmeter? Or should we change the code? It would be nice if someone could lead me in the right direction.

+6
source share
1 answer

Starting with version 2.7, JMeter is not able to create one QueueConnection and share it by thread. Fixed only InitialContext.

I opened a request to improve JMeter Bugzilla :

Regarding what you say about real life, it really depends on what is being simulated:

  • If you want to simulate one application with one broker, then what you say is true

  • But if you want to simulate many applications with one broker, then the current JMeter approach is closer to reality.

Hi

Philip M.

+4
source

Source: https://habr.com/ru/post/924621/


All Articles