Simulate Real Users with JMeter
If you are setting up a JMeter test to simulate user load on your website or web application, you’ll need to follow these steps to make your tests as realistic as possible.
Cache and Cookies
Add a “HTTP Cookie Manager” and a “HTTP Cache Manager” to your test. Set them to clear on each iteration.
Configure Your HTTP Request
At the foot of your HTTP Request sampler, select “Retrieve All Embedded Resources” and set the concurrent pool size to 6 (this is the average between the 4 to 8 usually employed by browsers and allows a number of simultaneous requests for resources).
To do this, set the URLs Must Match field to:
This will exclude URLs that contain the specified terms (so you would need to ensure there was no clash – for example, if you had a resource on your website such as “http://example.com/interesting-google-buttons.css”, it would not be downloaded as an embedded resource.