To change maximum number of threads running per process you need to:
- Go to LoadRunner installation folder
C:\Program Files (x86)\HP\LoadRunner\dat\protocols
- Find
.lrp
file that is corresponding to the protocol you use to create VuGen Script. In my case it was Java_protocols.lrp
file for the protocol Java Record Replay
.
- Edit it: paste
MaxThreadPerProcess=10
after [Vugen]
. Or edit this variable if it already exists.
HP LoadRunner Controller
should be restarted so that changes could take effect.
You need to find the best ratio Vusers(Threads)/Process to use resources of your test machine the best way. From my experiments I've found that one mdrv.exe
process can efficiently work with usage not more than 600-700MB of RAM.
N.B.: VuGen script should be set to run Vuser as a thread.