From the course: JMeter: Performance and Load Testing
Why use the command line? - Apache JMeter Tutorial
From the course: JMeter: Performance and Load Testing
Why use the command line?
- [Instructor] Running my load test is a simple process through JMeter's interface, but using this for anything other than test creation or debugging means that I'm using far more computer resources than I need to. Eventually, when I increase the load associated with the test, I'll start seeing errors, because there isn't enough RAM or CPU power for JMeter to use. Running a load test from the Command Line Interface, or CLI, can help alleviate that by using significantly less resources. Running load tests within the Command Line also allows for distributive load testing, which is an advanced way of sending your load test file to multiple instances of JMeter to increase that load exponentially. The application openly recommends using the Command Line to do this. It's faster, more reliable, and the CLI can still save all of the results of information to a file for later examination. The CLI is the purest way of running a load test. If you'll be working with JMeter in the future, it's something you should become very comfortable with.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.