Table of Contents Previous Next PDF


Using Test Load Generator

Using Test Load Generator
This chapter contains the following topics:
Overview
Test load generator is a Tuxedo applications load test tool that facilitates effective and efficient load testing. This feature works in conjunction with the payload collection feature to capture the call path and payload metrics coming from a domain gateway, Web service client or application server. One can create replay definition from call paths and execute the replay based on policies for standard and stress test modes.
 
Creating Call Path Policy for a Replay
A replay can be constructed from one or more call paths.
In order to collect call path and payload metrics, you need to create a call path policy on the target service with payload collection enabled by doing these steps:
1.
From the TSAM Plus console top menu bar, click Policy-> Tuxedo Monitoring Policy.
2.
In the Monitoring Policy List page, click Add to enter the Create Policy page.
3.
In the Call path tab, select Enable to enable the call path metrics collection.
4.
Select the domain in which payload data will be collected in the left Domain list, the Define Payload Collection button is activated. Click the button.
5.
It is recommended you select Initial Called Service Only to avoid collecting unnecessary metrics. The payload collection must not include any result filter.
Creating a Replay Definition
After the call path policy for the replay is created, do one or more Tuxedo calls to collect the source metrics from call paths. Then you can create a replay definition from call paths by doing these steps:
1.
From the TSAM Plus console top menu bar, click Load Generator-> Replay Definition.
2.
Click Add. The Call Path Query and Call Path Result Panels are displayed.
3.
Set the query filter options and click Query. The desired call paths are displayed in the result panel.
4.
The new-created replay definition is displayed in the Replay Definition list.
Setting Replay Definition Attributes
You can edit the replay definition attributes.
Table 8‑1 lists replay definition attributes.
 
Call tpbegin() when starting the call(s), and call tpcommit() when ending the calls
Call tpbegin() when starting the call(s), and call tpcommit() when ending the calls
The default service call attributes are from the first called service (not the "Initial Called Service" in the call path when the initiator is a server) when the replay definition is constructed from call path metrics. Table 8‑2 lists service calls attributes of replay definition.
 
Running a Replay
To run a replay, execute a replay agent in the command line with the exported replay definition file. TSAM Plus replay agents are under $TUXDIR/bin/. There are two kinds of agents:
It supports tpcall()/tpacall()/tpgetrply() calls.
It supports tpcall()/tpacall()/tpgetrply() calls in the workstation mode.
Before running a replay, make sure the target Tuxedo domain is started up. If TSAM Plus metrics are expected, you must create corresponding policies in TSAM Plus.
Note:
Table 8‑3 lists the replay agent parameters.
 
Execution Plan File
An execution plan file stores a replay execution plan attributes. The attribute format is "NAME=VALUE". The attribute name is case-insensitive.
There are two types of execution plan modes, normal mode and stress test mode. Table 8‑4 lists the general attribute.
 
 
Normal Mode Attributes
The normal mode is the default mode. It is normally used to do unit test or diagnostic a service call. It can also be used to do a stress test by setting the parameters concurrency number and repeat times to huge values.
 
Following is an execution plan file example:
definitionFile=def1.xml
concurrencyNumber=10
repeattime=100
sleepTime=0
compareReply=true
Stress Test Mode Attributes
There are three test mode types:
Following is an execution plan file example:
definitionFile=def1.xml
timeWindow=20
minCurrency=10
maxCurrency=1000
iniCurrency=10
totalRunTime=3600
Note:
If both maxLatency and avgLatency are specified, maxLatency is ignored.
Following is an execution plan file example:
definitionFile=def1.xml
timeWindow=20
minCurrency=10
maxCurrency=1000
iniCurrency=10
maxLatency=1000
avgLatency=500
totalRunTime=3600
Following is an execution plan file example:
definitionFile=def1.xml
timeWindow=20
throughput=1000
totalRunTime=3600
 
Replay Security Profile
genreplayprofile is under $TUXDIR/bin. Its parameter is the path of the security profile to be generated. When genreplayprofile is launched, you are prompted to enter the Oracle Tuxedo application password, user name and user password. It generates the replay security profile with the inputted content. The inputted content is used by the replay agent to do tpinit(). If different user names are specified in the replay security profile and the replay definition, the one in the replay security profile takes effect.
Replay Execution Result
Replay execution result is outputted to the standard output after the replay is finished or cancelled.
The normal schedule mode result contains the following contents:
The stress schedule mode result contains the following contents:
Running a Replay in Auto-Created Test Domain
You can use the tool tlgdomgen.py to create a test domain to call the service in the target domain. The tool is under $TUXDIR/bin and can be run using either python or Tuxedo Script Tool (TXST).
Configuration File
Before running tlgdomgen.py, you need to create the domain configuration file.
Table 8‑7 lists the configuration file parameters.
 
Following is a configuration file example:
[Input]
LDOMPORT = 8888
TUXDIR = /home/beadev/bea_linux64.13c/tuxedo12.2.2.0.0
APPDIR = /home/beadev/applicationgrid/domains/domain4
RDOMID = DOMAIN2
RDOMPORT = 6666
RDOMHOST = localhost
Executing tlgdomgen.py
To run tlgdomgen.py using TXST, do these steps:
1.
$TUXDIR/tux.env
2.
export CLASSPATH=$CLASSPATH:$TUXDIR/jmx/jython-standalone.jar:$TUXDIR/jmx/tmjmx_tux.jar:$TUXDIR/jmx/tmjmx_metadata.jar:$TUXDIR/udataobj/tuxj/com.bea.core.jatmi_2.0.0.0.jar
3.
run tlgdomgen.py:
java oracle.tuxedo.TXST $TUXDIR/bin/tlgdomgen.py <configuration file name>
The following files are generated:
ubbconfig.test: UBBCONFIG of the test domain.
addrom.mib: MIB scripts to add GWTDOMAIN access point to the target domain.
setenv.test: setenv of the test domain.
run.sh: execution scripts to set up and run the test domain.
dmconfig.test: DMCONFIG of the test domain.
4.
. $TUXDIR/tux.env
export FLDTBLDIR32=$TUXDIR/udataobj
export FIELDTBLS32="tpadm,Usysfl32"
ud32 -C tpsysadm < addrom.mib
5.
Boot the test domain using the file run.sh, and then run the replay.
 
 
 
 

Copyright © 1994, 2017, Oracle and/or its affiliates. All rights reserved.