Stats Tools
Summarize
Summary of Stats Tools Release
The Stats Tools is designed to help evaluate system performance by recording statistics related to various system activities such as queries, scripts, and transactions. This tool is activated by default and requires admin privileges for activation or upgrades. It is found under System Diagnostics > Stats, with modules for Slow Queries, Slow Scripts, and Slow Transactions, each accessing specific pattern tables.
Show less
Key Features
- Activity Pattern Tables: The tool aggregates unique activities into pattern tables: sysquerypattern, sysscriptpattern, and systransactionpattern, providing timing analysis and identifiable details.
- Filtering Logs: Logs can be filtered by application scope, allowing focused analysis of transactions originating from specific scopes.
- Metrics: Each recorded execution pattern provides total and average metrics for performance evaluation, which are updated with each execution instance.
- Transaction Types: Includes server-side and client-side transactions, with details on server load times and specific identifiers for HTTP requests and other transaction types.
- Script and Query Types: Records script activities and query executions, identifying them by relevant attributes such as table names and executed statements.
Key Outcomes
By utilizing Stats Tools, ServiceNow customers can effectively monitor and analyze system performance, identify slow queries and scripts, and make informed decisions to optimize system efficiency. The tool's detailed metrics and logging capabilities ensure that customers can trace performance issues back to specific activities, enabling targeted troubleshooting and improvements.
To aid in performance evaluation, the Stats Tools records statistics for system activities that affect performance such as the execution of queries, scripts, and transactions.
Activity patterns are immediately recorded to a cache and are later persisted to their pattern table. If you flush server caches, then recorded activities that have not been persisted are cleared. The following are examples of pattern records.
- Each time a query is executed that meets the recording and persistence threshold it is aggregated and stored as a query pattern record.
- Each time a particular business rule is executed it aggregates to a script pattern record.
- Each time a particular background job runs it aggregates into a unique transaction pattern record.
- Each click of the New button on the Incidents list counts as a list type transaction pattern with specific form action.
Metrics
Metrics include total and average times of interest per unique execution pattern over the total execution count. Metrics are aggregated with each new instance of the unique activity and persisted to the pattern record.
Metadata
Example data from specific executions are included on each pattern to identify execution details.
Characterizations of each activity type
| Transactions |
Any transaction type includes server-side and related client-side transactions. Metrics include Total server load time, which aggregates the total server-side time excluding semaphore and session wait times. It also aggregates relevant server transaction times that are found on the syslog_transaction table. Transaction types:
|
| Scripts |
Any script activity type includes scripts evaluated by GlideScopedEvaluator. Script Types:
|
| Queries |
Any query activity includes prepared statements executed by GlideDBI. Query Types: All queries are identified by MongoDB query or insert, update, or select statements, as well as other components of the statement like selected columns, where clause, unions, column sets, and limits. |