Creating and configuring multiple Simulators on Unix and Linux

Document ID : KB000098214
Last Modified Date : 28/05/2018
Show Technical Document Details
Introduction:
How to create and Configure Multiple Simulators on different Unix and Linux platforms.
Environment:

 
Instructions:
In the DevTest home /bin folder make as many copies as needed of the SimulatorService program by running these commands:  

cp SimulatorService SimulatorService2
cp SimulatorService SimulatorService3
cp SimulatorService SimulatorService4

For each of these new programs, create a separate .vmoptions file by using vi or another editor:
SimulatorService2.vmoptions
SimulatorService3.vmoptions
SimulatorService4.vmoptions

In SimulatorService2.vmoptions enter the following: 
-Dlisa.simulatorName=Sim2
-Dlisa.net.1.port=20142 
-DLISA_LOG=simulator2.log

Notes: 
The Simulator name has to be unique for each simulator.
The port also should be unique and not used by another process.

So in SimulatorService3.vmoptions the following could entered:

-Dlisa.simulatorName=Sim3
-Dlisa.net.1.port=20143
-DLISA_LOG=simulator3.log

Similarly for SimulatorService4.vmoptions

After configuring these new Simulators, they can be started from the bin folder using the commands:
./SimulatorService2 start
./SimulatorService3 start
./SimulatorService4 start
Additional Information:
Multiple simulators may be required when running tests that need a large number of concurrent users.
Note that the number of instances (concurrent users) can be configured for each Simulator.
See:
https://docops.ca.com/devtest-solutions/10-3/en/installing/installing-and-configuring-devtest-server/post-installation/calculate-simulator-instances

For starting multiple simulators directly from the command line, without configuration see:
https://docops.ca.com/devtest-solutions/10-3/en/using/using-ca-application-test/simulator-server

For configuring multiple simulators on Windows see:
https://comm.support.ca.com/kb/creating-and-configuring-multiple-simulators-on-the-same-machine-for-windows-services/kb000010174