Search code examples
jmetermultiple-users

how to run 2000 users in jmeter while i am having 20 users in my csv file?


I have a requirement to run 2000 users for 1 hr and i have 20 real users in my csv file, so how can i run it so after every 20 users, if will again run those 20 users in a loop till 2000 users running completion.


Solution

  • Given default Sharing Mode of All Threads in the CSV Data Set Config JMeter will read the next line on each iteration of each virtual user.

    So just make sure that:

    1. Recycle on EOF is set to True and Stop thread on EOF is set to False

      enter image description here

    2. The number of users multiplied by the Loop Count in the Thread Group is equal to 2000

      enter image description here

    In general ideally if you need to mimic 2000 users you should have 2000 credentials so it worth checking whether it's possible to generate 1980 more test accounts.