| eG Monitoring |
|---|
|
Measures reported by MsSqlSpaceTest This test reports the space usage of all Microsoft SQL server databases. Note that this test will report metrics only for Microsoft SQL Server 2008 R2 (and above). The measures made by this test are as follows:
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| Note: If multiple tests associated with a component share the same set of parameters, then, when one of tests is reconfigured, eG will automatically update the other tests (related to that component) with the changes. However, the MS SQL server is an exception to this rule. When an MS SQL server-related test is reconfigured, then the changes so made will be applied to all the tests except the MsSqlDatabaseSpace test. This test will therefore have to be reconfigured separately. Similarly, changes made to the MsSqlDatabaseSpace test will not automatically affect the configuration pertaining to the other MS SQL server-related tests. All space related measures are taken from information in the sysindexes table within the database. In most cases, this information is up to date; however, it is not guaranteed to be. Due to performance reasons, the sysindexes table is not continually updated. Updating this information is the same as updating any table in the database, and must be logged first in the transaction log. When the transaction log becomes full, updates to the sysindexes table are stopped, causing the information reported to be inaccurate. Workaround: Issue the following command: DBCC UPDATEUSAGE (db_name) NOTE: DBCC UPDATEUSAGE may take a long time to run because this command updates the dpages value in sysindexes for all the tables in the database, not just the dpages value for syslogs. After issuing this statement, space reporting should be accurate. If it is not, try issuing the CHECKPOINT command to flush changes in the cache to disk so that they can be read in and calculated correctly. |