|
Mercury Virtual Table ServerThis describes how to use the Virtual Table Server (VTS) from within LoadRunner computer system performance testing
| Topics this page:
|
|
Virtual Table Server (VTS)
With VTS, several load generators can obtain values from a single common pool of values. One Vuser can create key values (such as a new customer ID), and any number of other Vusers can immediately use that value. There are several versions of VTS. The VTS3 comes with LoadRunner 11.52 was completely rewritten to exchange data using REST JSON from a Node.JS server encapsulated in a 64-bit executable. VTS2 was a 32-bit Windows program and uses an in-memory database. Sure, a Vuser can make requests to obtain values, but that may impose a different load profile that may not be realistic. Without VTS, a single Vuser can only act on values it creates. As of LR8.0 and 9.10, LoadRunner is limited to having each load generator refer to its own parameter files, which means the same static values are used by multiple load generators. VTS provides a way for load generators to communicate with each other in real time. If the script "marks" each value as being used, VTS provides a mechanism for allocating unique values among load generators. If the script is written to act according to data obtained from VTS, the behavior of load generators can be controlled in real time. An alternative to VTS is making calls to a MySQL C API dll and this VuGen code. But beware that call dll's is not thread safe, which requires running as a process rather than thread and thus drastically reducing the number of Vusers which can be run from each load generator machine. |
Versions & Requirements
However, VTS2 only allows users to scroll to the 32,767th row. VTS3 allows a billion rows. At minimum, use at least a 300Mhz+ Windows NT/2000 to run the Virtual Table Server. Since the VTS server component is single threaded, a multi-CPU processor is unnecessary. In VTS version 2 “Data extraction and communication was simplified but limited to column/queue level operations. The new Virtual Table Server II provides a higher degree of data manipulation and 5-10 times better performance. From row level queries, retrievals, updates, insertions, unqueue entries, to database access, VTS II provides the functionality and ease for enhanced inter-process, inter-virtual user communication.”
|
|
Installation of VTS
| Within the zip file:
|
VTS Service Invocation
Optionally, -file C:\xxx specifies a file to be loaded upon invocation. This could be repeated to load several files. This should result in this Control screen. If not, to see if the port (by default 8888) is used by another application, run:
Exiting vtconsole erases its data in memory. Toggling between Shutdown and Start does not reset values. Make this invocation automatic everytime you login by right-clicking on the vtconsole.exe, then pasting it within folder Documents and Settings > your userid > Start Menu > Programs > Startup.
|
Scripting Basics
|
VTS Library FunctionsIn calls to VTS, it helps to have code to generalize the assembly of data, code to format display descriptions of return codes, etc. I have written such functions as part of my LoadRunner Framework.
|
Related Topics:
Performance Testing
NT Perfmon / UNIX rstatd Counters
Mercury LoadRunner
Mercury LoadRunner Scripting
Mercury WinRunner
Rational Robot
Free Training!
Tech Support
| Your first name: Your family name: Your location (city, country): Your Email address: |
Top of Page
Thank you! |