analyze_mtx_debug_log.py
The analyze_mtx_debug_log.py script analyzes the lines in MATRIXX debug log files.
The analyze_mtx_debug_log.py script prints the following information:
- IO receiver and sender tasks.
- Charging Server timeouts.
- Queue statistics.
- Process and thread information per server.
- A summary of log messages by type.
- A summary of throttled log messages.
- UDP packet statistics, latencies.
- Effective throughput.
- Cluster HA events.
- Socket-based log messages organized by IP address and port number.
- A summary of any errors.
Syntax
analyze_mtx_debug_log.py [-h | -a | -d | --debug_mode=DEBUG_MODE | --debug_performance | -f | -t]
Options
- -h, --help
- Help about the script options.
- -a, --all
- Displays detailed information from all MATRIXX
*_stderr.log files and the
mtx_debug.log file.
If you specify the
-a
option to get all details, a summary of the INFO messages is also displayed. Otherwise, only CRITICAL, ERROR, and WARN messages are displayed. In addition, if the-a
option is not specified, for queue information, only queues that caused any bottlenecks and the recommendations for fixing the bottlenecks are displayed. - -d, --debug
- Debug flag. The default is off (0). If enabled (1), extra messages are printed. It can be specified multiple times, which increases the types of extra messages printed.
- -f filename, --file=filename
- Runs the analysis on the specified system log. System logs are written to the directory specified with the ${MTX_LOG_DIR} environment variable. If this option is not used, all files matching *_stderr.log and mtx_debug.log files are processed. If the filename ends with .gz, it is unzipped internally before processing.
- -t timeouts_sec, --timeouts=timeouts_sec
- Displays statistics for queues experiencing timeouts less than or equal to the specified number of seconds.
For more information about the MATRIXX environment variables, see the discussion about container directories and environment variables in MATRIXX Installation and Upgrade.
Display Statistics and Debug Information for All Local Queues
The following example displays statistics and debug information for all local queues:
analyze_mtx_debug_log.py -a -d
Display Local Transaction Server Queue Statistics
The following example displays local Transaction Server queue
statistics:
analyze_mtx_debug_log.py -f ${MTX_LOG_DIR}/transaction_server.stderr.log