•
1. From the TSAM Plus console top menu bar, click Policy-> Tuxedo Monitoring Policy.
2.
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.It is recommended you select Initial Called Service Only to avoid collecting unnecessary metrics. The payload collection must not include any result filter.
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. Select the call path from the list and click Create Replay Definition.Table 8‑1 lists replay definition attributes.
Table 8‑1 Replay Definition Attributes The Tuxedo user name used to do tpinit() The Tuxedo client name used to do tpinit() The Tuxedo client name used to do tpinit() 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.
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.Table 8‑3 lists the replay agent parameters.
Table 8‑3 Replay Agent Parameters 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.
Table 8‑4 General Attribute 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.
Table 8‑5 Normal Mode Attributes
• Increase the load till the max/average latency reaches the specified value. It is enabled when the parameter maxLatency or avgLatency is specified.
Note:
• Run with the specified throughput. It is enabled when the parameter throughput is specified.
Table 8‑6 Stress Test Mode Attributes 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.
•
• 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).Before running tlgdomgen.py, you need to create the domain configuration file.Table 8‑7 lists the configuration file parameters.
Table 8‑7 Configuration File Parameters To run tlgdomgen.py using TXST, do these steps:
3. run tlgdomgen.py:
• 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.
5. Boot the test domain using the file run.sh, and then run the replay.