Can I run JMeter in VM?

Will I get accurate performance?


JMeter runs on top of Java Virtual Machine therefore it doesn't care about underlying operating system and hardware so the answer is yes, you can run JMeter on virtual machine. Moreover, there are several service providers which offer "JMeter as a service" and they run JMeter using cloud VM services like Microsoft Azure or Amazon EC2

Just make sure you monitor your VM resources like CPU, RAM and Swap usage along with Disk and Network IO to ensure that JMeter has enough headroom for operating, otherwise you may run into a situation when throughput is low because JMeter is not able to send requests fast enough. The majority of operating systems have bundled programs and commands which allow to monitor baseline OS health metrics, you can use PerfMon JMeter Plugin which can be integrated with your load test. See How to Monitor Your Server Health & Performance During a JMeter Load Test article for plugin installation and configuration instructions.

  • The only thing I'd add is that the environment of the system in test should be as close as possible (preferably identical) to the environment in which the application is being deployed, particularly if you're looking for measures of how much load the application can take.
    – Kate Paulk
    Feb 16 '17 at 12:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.