If you want to stress test an IT-environment and want to launch multiple sessions simultaneously, you will see a delay between the start of each session.
Explanation
The process of starting a session on a LoadGen Agent consists of the following steps:
- The LoadGen Director chooses a LoadGen Agent.
- The LoadGen Director sends a session start command to the LoadGen Agent.
- The LoadGen Agent will spawn a sub process which will launch the actual session.
- The session launcher will prepare the basic information to continue building up the session.
- The session launcher will generate a PrepareSession event and will trigger the LoadGen Agent.
- The LoadGen Agent will trigger the LoadGen Director to release the connected session.
LoadGen 5.0.0.2868 and higher
We have changed the routine which signals a prepared session, which will speed up the process from an average of 30 seconds, to an average of 5 seconds (depending on the hardware specifications of the machines running the LoadGen Director and LoadGen Agent).
Solution
You can run sessions simultaneously by increasing the SessionStreams value:
- Open a Command Prompt with elevated rights (Run as Administrator).
- Type: cd %ProgramData%\LoadGen\LoadGen Director
- Type: Notepad LoadGenLoadBots.xml
- Search for your LoadGen Agent within the <LoadBotName> field.
- Change the value <SessionStreams>1</SessionStreams> to your specific value.
- Save the LoadGenLoadBots.xml file.
- Restart the LoadGen Director.
Warning!
The change of the SessionStreams value will impact the LoadGen Agent on CPU and Memory.