Architecture Overview
Requests from many virtual user clients are generated by "Load Generators" in order to create a load on various servers under test These load generator agents are started and stopped by Mercury's "Controller" program. The Controller controls load test runs based on "Scenarios" invoking compiled "Scripts" and associated "Run-time Settings". Scripts are crafted using Mercury's "Virtual user script Generator" (named "V U Gen"), It generates C-language script code to be executed by virtual users by capturing network traffic between Internet application clients and servers. With Java clients, VuGen captures calls by hooking within the client JVM. During runs, the status of each machine is monitored by the Controller. At the end of each run, the Controller combines its monitoring logs with logs obtained from load generators, and makes them available to the "Analysis" program, which can then create run result reports and graphs for Microsoft Word, Crystal Reports, or an HTML webpage browser. Each HTML report page generated by Analysis includes a link to results in a text file which Microsoft Excel can open to perform additional analysis. Errors during each run are stored in a database which can be read |
|
| Note: Links to documents that used to be here were removed after Mercury Interactive, Inc. lawyers demanded their removal. |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Application Product | Process Image Name | V8.0 Img KB | File Size | |
|---|---|---|---|---|
| | - | LRLauncherApp.exe | 16,288 | n/a |
| | Virtual User Generator | VuGen.exe | 12,436 | 2,334,769 |
| | Controller | wlrun.exe | 13,076 | 5,681,215 |
| | Load Generator Agent | magentproc.exe | 3,236 | |
| magentservice.exe | | 65,536 | ||
| mdrv.exe | | |||
| | Analysis | Analysisui.exe | 13,132 | 6,058,496 |
| | Tuning Console | protune.exe | | 3,403,833 |
Console programs
| perl5.8.0.exe | Interpreter | 20,535 |
| regtlb.exe | registers the batch automation type library | 30,720 |
| sed.exe | 55,296 | |
| wdiff.exe | Compares text files | 197,632 |
Alex Arbitman's
LR 7.8 Footprints.xls reports that to run Web requires __ per process and __ per thread.
| Quality Web Systems: Performance, Security, and Usability (Addison-Wesley Professional; Aug. 2001) by Elfriede Dustin, Jeff Rashka, Douglas McDiarmid |
|
| Protocol | Server | Client Program | Parameter | Notes |
|---|---|---|---|---|
| Web | WebTours\StartServer.bat | http://localhost:1080/mercuryWebTours | | |
| COM/DCOM | (Operating System) | samples\bin\frsui.exe | | |
| Winsock | sockfrs.exe | samples\bin\flights.exe | Winsock WinSockWeb | |
| ODBC | (MS Access) | samples\bin\flights.exe | ODBC_Access | |
| CORBA | samples\CorbaSamples\server.cmd & samples\CorbaSamples\server.bat | samples\CorbaSamples\client.cmd & samples\Corbasamples\clientrecord.cmd | | Stuart Moncrieff's article on CORBA |
| RMI | samples\RMISamples\server.cmd & samples\RMISamples\server.bat | samples\RMISamples\client.cmd & samples\RMISamples\clientrecord.cmd | |
According to CPT11877.doc, JDK 1.5 users need to contact Mercury Support for a patch to each specific LoadRunner version (7.6, 7.8 FP1 or 8.0). Otherwise, you'll get these messages:
- Error: Failed to find javac.exe Java Compiler in Path and JDK installation folder in registry. [MsgId: MERR-22981]
Error: Failed to compile the Actions.java file. Please add the
Warning: Extension java_int.dll reports error -1 on call to function ExtPerProcessInitialize [MsgId: MWAR-10485]
Error: Thread Context: Call to service of the driver failed, reason - thread context wasn't initialized on this thread. [MsgId: MERR-10176]
The Java sample apps use the "flight32lr" User Data Source with Microsoft Access driver(*.mdb) in the USER DNS table in Data Sources(ODBC) of the VuGen's local machine.
Additionally, the sample Java servers must be operational prior to starting the client. This is done with the "samples\RMISamples\server.cmd":
- set lrpath=C:\PROGRA~1\Java\jre1.5.0_02\bin;C:\PROGRA~1\MERCUR~1\MERCUR~1\classes
set lrclasspath=C:\PROGRA~1\MERCUR~1\MERCUR~1\classes;C:\PROGRA~1\MERCUR~1\MERCUR~1\classes\srv;C:\PROGRA~1\Java\jre1.5.0_02\lib\rt.jar
set flightRmi=%~dp0;%~dp0RmiSamples.zip
set classpath=%lrclasspath%;%flightRmi%;C:\PROGRA~1\Java\lib\rt.jar;.;%classpath%
set path=%lrpath%;.;%path%
cd %~dp0
start java -Djava.security.policy="%~dp0RmiFlights.policy" RmiFlights.Server
Note the location of loadrunner class files I added to the default sample. They are pre-pended to the existing classpath.
Note that there are no spaces in the file path.
The Zip file is equivalent to a JAR file in Unix systems.
Do not delete the black command window because the Java server runs within it.
CORBA and RMI Java clients are invoked with a command for Windows to start the java.exe program. This "samples\RMISamples\client.cmd" file contains:
- set lrpath=C:\PROGRA~1\Java\jdk1.5.0_02\bin;C:\PROGRA~1\MERCUR~1\MERCUR~1\classes
set lrclasspath=C:\PROGRA~1\MERCUR~1\MERCUR~1\classes;C:\PROGRA~1\MERCUR~1\MERCUR~1\classes\srv;C:\PROGRA~1\Java\jdk1.5.0_02\lib\rt.jar
set flightRmi=%~dp0;%~dp0RmiSamples.zip
set classpath=%lrclasspath%;%flightRmi%;C:\PROGRA~1\Java\jdk1.5.0_02\lib\rt.jar;.;%classpath%
set path=%lrpath%;.;%path%
cd %~dp0
start java RmiFlights.main
Note that the RmiFlights.main class file name is passed into java for it to load.
When recording Java with VuGen, a different command — such as the sample clientRecord.cmd — needs to be invoked because VuGen needs to be invoked within the JVM sandbox:
- set flightRmi=%~dp0;%~dp0RmiSamples.zip
set classpath=%flightRmi%;%classpath%
cd %~dp0
start InvokeVugen.exe
- Error: Failed to find javac.exe Java Compiler in Path and JDK installation folder in registry. [MsgId: MERR-22981]
Instead of web "Start recording", Java VuGen scripts invoke Java functions within the Actions section.
"vuser_init" and "vuser_end" actions are not relevant within Java VuScripts.
Internally, the cjhook.ini file specifies which Java classes can hook in its [EXC_SYSTEM_CL] section. Java classes specified in the [SYSTEM_CL] section are not hooked.
The user.hooks file in LR \bin folder is a general format and cannot be used as-in. It needs to be copied.
Uninstall
Unlike Microsoft Office applications, Mercury has not programmed invididual components to be selectively uninstalled on its own.

Quality Web Systems: Performance, Security, and Usability (Addison-Wesley Professional; Aug. 2001)
The Web Testing Handbook (S T Q E Pub, Jan. 2001)
Download [after required registration] the 10 day trial from
Disable your anti-virus software (Symantec, McAfee, etc.) before invoking on installers.
Virus Detection engines (such as Hauri versions since May 18) may find that program
this installation manual
cd %lr81%
so that I can click into that folder from anywhere. The pause command ensures that the command window does not disappear automatically. Alternately, from within a command window I can just type "L" and press Enter.




2 Comments:
[url=http://firgonbares.net/][img]http://firgonbares.net/img-add/euro2.jpg[/img][/url]
[b]discount software for education, [url=http://firgonbares.net/]teacher discount software[/url]
[url=http://firgonbares.net/][/url] software at a discount price camera software
software discounts uk [url=http://firgonbares.net/]acdsee pro photo[/url] buy software canada
[url=http://firgonbares.net/]order form software[/url] Mac Parallels Desktop
[url=http://firgonbares.net/]buy software australia[/url] nero dmc
CS4 Extended Mac Retail [url=http://firgonbares.net/]softwares for sale[/b]
Can anyone recommend the best Managed Service program for a small IT service company like mine? Does anyone use Kaseya.com or GFI.com? How do they compare to these guys I found recently: N-able N-central MSP tool
? What is your best take in cost vs performance among those three? I need a good advice please... Thanks in advance!
Post a Comment