How to run multiple Simulators on Linux in DevTest 10.7.0 and later
search cancel

How to run multiple Simulators on Linux in DevTest 10.7.0 and later


Article ID: 245321


Updated On:


Service Virtualization


For DevTest 10.7.0 and later on Linux it is no longer possible to run multiple Simulators by starting multiple SimulatorService commands.

You must run multiple Simulator commands.  You can run one Simulator as a service, but any additional Simulators must be run as servers.


Release : 10.7.0 and later

Component : DevTest Simulator





In LISA_HOME/bin copy Simulator to Simulator1

Copy Simulator.vmoptions to Simulator1.vmoptions

Update the following properties in the vmoptions file.

-Dlisa.simulatorName=SIM1 (each Simulator should have a unique name) (for the new Simulator; must use a different port than 2014)
-DLISA_LOG=sim1.log (to distinguish between the Simulator log files).

Repeat for each additional Simulator, each with their own command, vmoptions and name.


The following example script starts 2 Simulators:

export DT=/opt/CA/DevTest
export DTBIN=$DT/bin
export DTLOG=$DT/lisatmp_10.7.2

nohup $DTBIN/Simulator1 2>&1 >$DTLOG/startsim1.log &
nohup $DTBIN/Simulator2 2>&1 >$DTLOG/startsim2.log &


NOTE: When you run a nohup command the PID will display on the next line of the command line.  If you do not remember the PID and have to kill the process do a ps -ef, it will list out all the processes running.  Look for a line that has -server in it.


root@username123:/opt/CA/DevTest10.7.2/bin# nohup ./Simulator 2>&1 >/root/lisatmp_10.7.2/startsim_server.log &
[1] 1055
root@username123:/opt/CA/DevTest10.7.2/bin# nohup: ignoring input and redirecting stderr to stdout

My process ID is 1055.

This is how I found the the process ID later:

ps -ef

Look for a line that has -server in it:

root     1055  788  6 20:22 pts/0    00:00:20 /opt/CA/DevTest10.7.2/jre/bin/java -server -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/CA/DevTest1