SQL Transaction Logs Activity Test
Every database created on a Microsoft SQL server is associated with a database file (.mdf) and a log data file (.ldf). All transactions to the database are logged in the log data file. The server will use the logged transactional information to restore the database after a crash, or when a transaction runs into issues and may have to be rolled back.
This test periodically monitors the I/O activity on and the growth in the size of the log file associated with each database. Using the metrics reported by this test, you can proactively detect bottlenecks while reading from or writing to the log file and excessive disk space usage by the log file.
By default, this test is disabled. This test is disabled by default. To enable the test, go to the enable / disable tests page using the menu sequence : Agents -> Tests -> Enable/Disable, pick Microsoft SQL as the Component type, Performance as the Test type, choose this test from the disabled tests list, and click on the << button to move the test to the ENABLED TESTS list. Finally, click the Update button.
Target of the test : A Microsoft SQL server
Agent deploying the test : An internal agent
Outputs of the test : One set of results for every database on the monitored Microsoft SQL server
|
Measurement | Description | Measurement Unit | Interpretation |
---|---|---|---|
Write rate: |
Indicates the rate at which writes occurred on this log file. |
Writes/Sec |
|
Data write rate: |
Indicates the rate at which data was written to this log file. |
KB/Sec |
Ideally, the value for this measure should be low. If the value for this measure is high, use the detailed diagnosis of the Num of waits measure to identify the queries that are causing the waits to remain for a long time. You may want to finetune the queries to reduce wait time. |
I/O stall writes: |
Indicates the total time taken to write to this log file. |
Millisecs/write |
A high value for this measure could indicate a bottleneck while writing to the log file. By comparing the value of this measure across log files, you can identify the log file to which write operations are taking too long to complete. |
Read rate: |
Indicates the rate of reads from this log file. |
Reads/Sec |
|
Data read rate: |
Indicates the rate at which data was read from this log file. |
KB/Sec |
|
I/O stall reads: |
Indicates the time taken to read from this log file.
|
Millisecs/read |
A high value for this measure could indicate a bottleneck while reading from the log file. By comparing the value of this measure across log files, you can identify the log file to which read operations are taking too long to complete. |
I/O stall: |
Indicates the total time taken for I/O to complete on this log file. |
Millisecs/IOP |
A high value for this measure could indicate an I/O bottleneck on this log file. |
Size on disk: |
Indicates the total size on disk of each logfile. |
MB |
This measure is used to determine the growth of the logfile. |