You can monitor Service Virtualization message processing using predefined performance counters. The performance counters are created during installation of either the Service Virtualization Designer or the Service Virtualization Server. You can then view the counters in Windows Performance Monitor. You can also use the performance counters to monitor Service Virtualization that is running on a remote machine. The uninstallation of both the Designer and Server delete the counters from the Windows system.
There are several Service Virtualization performance counter categories added to the Windows Performance Monitor:
|Service Virtualization - Services||The Services performance counters provide measurement data per virtual service. Both the Designer and the Server write their data to these same counters. For details, see Services.|
|Service Virtualization - Operations||The Operations performance counters provide data per virtual service and service operation. Both the Designer and the Server write their data to these same counters. For details, see Operations.|
|Service Virtualization - Server Statistics||The Server Statistics performance counters provide data for a standalone Service Virtualization Server, and for the services deployed on the server. Only the Service Virtualization Server writes data to these counters. For details, see Server Statistics.|
|Counter Name||Counter Description||Units|
|Throughput||The data capacity of the virtual service.||MB/s|
|HitRate||The number of requests and responses processed by the virtual service.||hits/s|
|AverageResponseTime||The average time for the virtual service to process a request and return a relevant response.||ms|
|DataSimulationAccuracy||The accuracy of data model emulation of the real service by the virtual service.||%|
|PerformanceSimulationAccuracy||The accuracy of performance model emulation of the real service by the virtual service.||%|
|Counter Name||Counter Description||Units|
|Throughput||The data capacity of the virtual service operation.||MB/s|
|HitRate||The number of requests and responses processed by the virtual service operation.||hits/s|
|AverageResponseTime||The average time for the virtual service to process a request and return a relevant response for the operation.||ms|
|Counter Name||Counter Description|
|Connections||The number of connections from clients to Service Virtualization agents.|
|DbResponseTime||Communication latency between the Service Virtualization Server and the database.|
|HitRate||The number of requests and responses processed by all virtual services running on the Service Virtualization Server.|
|MessageSize||The average message size for all services deployed on the Service Virtualization Server.|
|Throughput||The average data capacity for all services deployed on the Service Virtualization Server.|
|TransactionsPerSecond||The average value for all services deployed on the Service Virtualization Server.|
Service Virtualization creates instances of all the performance counters for each virtual service that is deployed locally, either on the Service Virtualization Designer's embedded server, or on the Service Virtualization Server.
Instance names are created in the following format:
- For services: <service_name>
- For operations: <service_name>_<operation_name>
- For server statistics: server statistics. The instance is created during installation of the Service Virtualization Server. Data is updated on the Server machine only, when the Server is running.
For example, for a locally deployed virtual service called HelloWorld which has two operations named Hello and Bye, the performance counters in the local system have the following instances:
|Counter Category||Counter Name||Counter Instance Name|
|Hello Operation||Bye Operation|
You can use the performance counters to monitor Service Virtualization that is running on a remote machine.
To remotely access the performance counters, you must use a Windows user account with appropriate privileges on the remote machine. You can create this account in the following ways:
|Automatically||During installation of Service Virtualization, you have the option to create a user account that is automatically configured with the proper privileges. For details, see the Service Virtualization Installation Guide.|
|Manually||If you create the Windows user account manually, you must add this user to the default Windows group Performance Monitor Users.|
Some versions of LoadRunner and Performance Center may not display the performance counters, due to an internal renaming issue.
If you experience this issue:
Open the Service Virtualization Server configuration file HP.SV.StandaloneServer.exe.config, located by default in C:\Program Files\Micro Focus\Service Virtualization Server\Server\bin\.
Make sure the following parameters are both set to "true":
<add key="SV.PerformanceCounters.UseHpPrefix" value="true" />
<add key="SV.PerformanceCounters.UseHpePrefix" value="true" />
In addition, performance counters can be read by domain users only.