0

I'm running api load tests with a script that's a combination of REST and websocket APIs. The resource utilisation of the VM where I'm using jmeter to execute load tests is much higher than before incorporating the websocket APIs. I wanted to understand if that's normal if I'm doing something wrong. The transaction rate of the test is 2000 transactions per minute by 2000 users. Other than the API samplers I have a few JSR223 samplers. I was wondering whether they could be the reason. But they process pretty simple functions, (creating or renaming a variable each iteration). Has anyone been in a similar situation and is there any way to optimise the script resource utilisation.

1 Answer 1

0

Using JSR223 Test Elements is fine as long as you:

  1. Use Groovy language
  2. Cache compiled scripts

enter image description here

So it might be the case the plugin is consuming resources, you can use a profiler tool to see what exactly consumes resources

It might also be a good idea to follow JMeter Best Practices and recommendations from 9 Easy Solutions for a JMeter Load Test “Out of Memory” Failure article

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.