Setting Up the Injectors
Without a good injection, our load tests would be meaningless.
Never Host Injectors on the Same Server as the Tested System
Let's say that you think the installation of dedicated injectors takes too much time, so you decide to install JMeter on one of the servers of the system being tested. In your script, you replace the host with localhost and you launch your load test.
What seemed to be a good idea at the start will turn into a waste of time afterward!
Having the injector on one of the servers of the system being tested is strongly discouraged for several reasons:
- The load consumed by the tested application can have a negative impact on JMeter.
- The load consumed by JMeter can negatively impact the tested application.
- You'll be testing with a network profile that does not exist in real life (meaning no load balancer, minimal network latency, no packet loss, and so on).
Regarding the last point here, on my laptop I have no packet loss and a...