How to run multiple VSEs Services on Linux for DevTest 10.8.0 and later
search cancel

How to run multiple VSEs Services on Linux for DevTest 10.8.0 and later

book

Article ID: 235153

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

For DevTest 10.8.0 and later on Linux, it is no longer possible to run multiple VSE services by starting multiple VirtualServiceEnvironmentService commands.


Is there a way to start multiple VSEs with a shell script?

Environment

Release : 10.8.0 and later

Component : DevTest Virtual Service Environment

Resolution

Steps:


In DEVTEST_HOME/bin/additional_launchers copy

VirtualServiceEnvironmentService1 to DEVTEST_HOME/bin

VirtualServiceEnvironmentService2 to DEVTEST_HOME/bin

VirtualServiceEnvironmentService1.vmoptions to DEVTEST_HOME/bin

VirtualServiceEnvironmentService2.vmoptions to DEVTEST_HOME/bin


Update the following properties in the vmoptions file, this example is for starting two additional VSEs on the same machine:

-Dlisa.vseName=VSE1
-Dlisa.net.8.port=20131
-DLISA_LOG=vse2.log

-Dlisa.vseName=VSE2
-Dlisa.net.8.port=20132
-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.8.0/bin/VirtualServiceEnvironmentService1 2>&1 &
nohup /home/[userid]/CA/DevTest10.8.0/bin/VirtualServiceEnvironmentService2 2>&1 &

You will need to change /home/[userid]/CA/DevTest10.8.0/ 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.8.0/bin# nohup ./VirtualServiceEnvironmentService1 2>&1 &
[1] 1055
[userid]@[userid]-centos08-sv :/home/[userid]/CA/DevTest10.8.0/bin# nohup: ignoring input and redirecting stderr to stdout

My process ID is 1055.

This is how to find 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.8.0/jre/bin/java -server -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/CA/DevTest1

 

Verify the additional VSEs can be seen in Server Health on the Portal as well as from Workstation.

 

 

Additional Information