MySQL Top Tables By Size Test

To make sure that a database does not grow uncontrollably, administrators may want to periodically check the size of the database tables, isolate the tables with the maximum size, and see if the table size can somehow be reduced. The MySQL Table Size test helps administrators greatly in this exercise. This test automatically identifies to top 5 tables in a given database in terms of size, and reports the current size of each table.

To enable the test, go to the enable / disable tests page using the menu sequence : Agents -> Tests -> Enable/Disable, pick MySQL as the Component type, Performance as the Test type, choose the 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 MySQL server

Agent deploying the test : An internal/remote agent

Outputs of the test : One set of results for each of the top-5 tables on the database being monitored

Configurable parameters for the test
  1. TEST PERIOD – How often should the test be executed
  2. Host – The IP address of the MySQL server
  3. Port – The port on which the server is listening
  4. db – the name of a database on the server
  5. Usernameand password - The eG agent has to be configured with the credentials of a user who has server-wide process and select privileges on the monitored MySQL server. To know how to create such a user, refer to Pre-requisites for Monitoring the MySQL Server topic.
  6. Confirm password – Confirm the password by retyping it here.
  7. TABLE ROWS - Specify the number of records beyond which this test will consider a table as a large table.
Measurements made by the test
Measurement Description Measurement Unit Interpretation

Table size:

Indicates the current size of this table.


Compare the values of this measure across the top-5 tables to know which table is of the maximum size.