Search code examples
jmeterjmxmbeans

JMeter: Sampler for JMX/MBeans?


I there a possibility to access MBeans of the system under test from JMeter? I have a system which has several deployments, but needs a MBean call to do final initialization and startup. I need to access and run this. Addtionally, it would be great to get some information out off MBeans for testing.

How is this possible? Do I really need to write an own sampler?


Solution

  • To init your component you could use à jmeter setup thread group and use a jsr223 sampler using groovy as underlying package.

    With groovy it's very easy to call jmx operations:

    Otherwise there is a plugin:

    It contains a jmx sampler in it.