For DevTest 10.7.0 on Linux it is no longer possible to run multiple VSEs by starting multiple VirtualServiceEnvironmentService commands.
Is there a way to start multiple VSEs with a shell script?
Release : 10.7.0 and later
Component : DevTest Virtual Service Environment
Please following the steps below or refer to section "How To Run Multiple VSE Services on a Single Server" in the version of DevTest you are running.
Steps:
In DEVTEST_HOME/bin copy
VirtualServiceEnvironment to VirtualServiceEnvironment2
VirtualServiceEnvironment to VirtualServiceEnvironment3
VirtualServiceEnvironment.vmoptions to VirtualServiceEnvironment2.vmoptions
VirtualServiceEnvironment.vmoptions to VirtualServiceEnvironment3.vmoptions
Update the following properties in the vmoptions file, this example is for starting two additional VSEs on the same machine:
-Dlisa.vseName=VSE2
-Dlisa.net.8.port=20132
-DLISA_LOG=vse2.log
-Dlisa.vseName=VSE3
-Dlisa.net.8.port=20133
-DLISA_LOG=vse3.log
Repeat for each additional VSE, each with their own command, vmoptions and name.
The following sample example script starts 2 VSEs:
#!/usr/bin/bash
nohup /home/[userid]/CA/DevTest10.7.2/bin/VirtualServiceEnvironment2 2>&1 &
nohup /home/[userid]/CA/DevTest10.7.2/bin/VirtualServiceEnvironment3 2>&1 &
You will need to change /home/[userid]/CA/DevTest10.7.2/ to where your DevTest is installed.
NOTE: When you run a nohup command the PID will display on the next line of the command line.
Example:
[userid]@[userid]-centos08-sv :/home/[userid]/CA/DevTest10.7.2/bin# nohup ./VirtualServiceEnvironment 2>&1 &
[1] 1055
[userid]@[userid]-centos08-sv :/home/[userid]/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 /home/[userid]/CA/DevTest10.7.2/jre/bin/java -server -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/CA/DevTest1
Verified additional VSEs can be access from Workstation:
https://techdocs.broadcom.com/us/en/ca-enterprise-software/devops/devtest-solutions/10-7/using/using-service-virtualization/sv-installation-and-configuration/how-to-run-multiple-vse-services-on-a-single-server.html