![]() |
![]() |
![]() |
![]() |
![]() |
The LMS must be configured in the UBBCONFIG file and set with the proper options. One Tuxedo machine must be configured with one LMS. Multiple LMS on one machine is not supported. LMS is recommended to be configured at the end of UBBCONFIG so that it can retrieve all server information when Tuxedo domain booted. LMS still can synchronize the configuration to TSAM Plus manager periodically.
• host is the host DNS name or IP address of the box where TSAM Plus manager is installed.
• port is the TCP port number.
• tsam is the Oracle TSAM Plus manager reserved path name.Optional parameter. It specifies the time interval LMS sends a warning message to ULOG if performance metrics data is dropped due to shared memory size limit. Its range is [1-65535]. The default value is equal the -t value. The warning message reports how many messages have been lost during the past interval.Optional parameter. It specifies the local file path where the user payload data is stored. If not specified, the default user payload local file is generated at APPDIR with the main file name payload. If the parameter is specified as a relative path, it is relative to APPDIR. The payload in local file naming format is <domain>_<machine>_<yyyymmddhh24miss>.payload. If the file size is greater than 2G, a new file will be produced.Listing 1‑1 shows the LMS in UBBCONFIG.Listing 1‑1 LMS in UBBCONFIGThe following tlisten options serve for JMX monitoring:jmxaddr specifies the address of RMI connector of embedded JMX agent. If the address has been occupied by another process, an error message is printed into ULOG and JMX agent fails to start up. Table 1 lists the jmxaddr adress formats.
Table 1 IPv4 and IPv6 Address Formats
Note: Specifies the maximum memory size (in MB) that can be allocated for the JVM used by JMX agent. The value of jvm_max_mem cannot be set smaller than the value of jvm_min_mem, otherwise the JVM are not created and JMX agent fails to start up. The default value is 500MB.Specifies the keyStore absolute path.Specifies the environment variable in which the password for the key store is stored. This variable is only usefully when no tty is attached.A new CLOPT option is introduced for GWTDOMAIN.The BTM monitor URL. The format is http://<HOST>:<PORT>/btmmonitor/agent/agent/.When this option is specified, GWTDOMIAN starts an embedded JVM and runs a BTM delegate observer to monitor bidirectional calls between WTC and itself.Oracle TSAM Plus Agent provides a tmadmin command to turn on/off. If you want to turn off Oracle TSAM Plus temporally, this command can be used. The format is as follows:The -m parameter specifies the logic machine name where the Oracle TSAM Plus collection is disabled. Without this option, monitoring on all machines is disabled. By default, monitoring is turned on. If monitoring is turned off, all data collection is stopped even if there is a monitoring policy defined.tpgetcallinfo is used for call path monitoring. Using tpgetcallinfo allows applications to make dynamic decisions based on application performance metrics. When call path monitoring is enabled, tpgetcallinfo allows applications to get the corresponding call path information, for example, correlation ID and various timestamps.tsambegin()- Used in pair with tsamend() for users to manually add a segment to the current call path.If succeeded, TSAM Plus returns a positive description in long type denoting a sequence ID. The sequence ID is transferred to tsamend(), by which TSAM Plus can correlate the two APIs.Its error codes are defined in the file tsam_ext.h.
Table 1‑1 tsambegin Error Codes argc or argv value is invalid type value is invalid subtype value is invalidtsamend()- Used in pair with tsambegin() for users to manually add a segment to the current call path. It must be used with tsambegin() in the same thread.Specifies the sequence ID returned by tsambegin().Specifies the number of string pointed by argv. It must not less than 0.Its error codes are defined in the file tsam_ext.h.
Table 1‑2 tsamend Error Codes argc or argv value is invalid cd value is invalidThe environment variable TSAM_LOG_LEVEL specifies the TSAM Plus Agent log level. Table 1‑3 lists the supported levels. If the environment variable is not set, the Agent log level is set to the default value INFO.
Table 1‑3 Supported Log Levels The TRACE messages of the metrics generated by Agent plug-in are outputted to the file raw.agent.log.155843.bjlinux99.cn.oracle.com!LMS.6519.285202160.0: INFO: thread pool init success with 1 thread(s)When the log level is TRACE, the log messages in ULOG contain indents:To set the log level of LMS to TRACE, set TSAM_LOG_LEVEL to TRACE, and then boot (or reboot) LMS in the same console.To set the log level of Agent plug-in to TRACE, set TSAM_LOG_LEVEL to TRACE, and then boot (or reboot) Oracle Tuxedo servers in the same console.tsamadmin is a management tool provided by TSAM Plus Agent. It provides the following functions:
•
•
• The TUXCONFIG file is generated properly and you have the read permission.This command is used to configure LMS in the Tuxedo UBBCONFIG file and generate a new tuxconfig file automatically. Only one LMS configuration is allowed on one machine. If the LMS configuration already exists, the command sends a notification and exits.Uses the static method to generate the tuxconfig.A new UBBCONFIG file is created and the LMS is configured in the new-created group (Group1), as shown below:
Note: The new-created UBBCONFIG file is named “UBB”. Before you run tsamadmin autoconfig, make sure your existing UBBCONFIG file does not use the same name if you do not want the old file to be overwritten.After the command is executed successfully, a new tuxconfig is generated with the original file name and then the old file is renamed as <original name. + timestamp>.
a. TSAM agent plug-in is correctly registered in Tuxedo. If the plug-in is not registered yet, tsamadmin helps users to register the plug-in.
Note: This check can be processed on SHM and MP mode. For the MP mode, only if all the configured domains meet b), c) and d), the check can pass. That is, if any machine is not configured with an LMS, managercheck will fail. In MP mode, if managercheck is invoked on the slave node, only a) is checked.Following are managercheck options:Display tsamadmin managercheck usage.Run the check on slave node. It only checks TSAM Plus Agent plug-in registration and tuxconfig is not required.
• Unix/Linux Database Deployment: DatabaseDeployer.sh
• Windows Database Deployment: DatabaseDeployer.cmdDatabase deployment utilities are used to create a TSAM Plus database, update the database information in the tsam_wls12c.ear file (located at <TSAM_DIR>/deploy), or reset the administrator password. The syntax is as follows:Table 1‑4 lists the database deployment utility parameters.
Table 1‑4 database Deployment Utility Parameters Database server host name. It is mandatory when -url is not specified. Database port. It is mandatory when -url is not specified.
• Unix/Linux Application Server Deployment: AppServerDeployer.sh
• Windows Application Server Deployment: AppServerDeployer.cmdApplication Server Deployment Utilities are used to deploy the tsam_wls12c.ear file (located at <TSAM_DIR>/deploy) to a WebLogic domain. The syntax is as follows:Table 1‑5 lists the application server deployment utility parameters.
Optional. WebLogic domain URL. Default is localhost:7001.