Skip to main content

Monitoring a Database Instance

Home > Select Project > Dashboard > Monitoring a Database Instance

In Monitoring a Database Instance, you can monitor the key metrics of the database server, information details on active sessions, lock tree, PQ tree, and process information in real time. You can also see the alerts that could be problematic warnings. By default, the collected data for the last 10 minutes is retrieved in real time. Collected data is updated every 5 seconds.

Basic screen guide

Instance Monitoring

  • number1 Selecting a lookup target

    You can select an instance and a database included in the instance for data inquiry. The collected data of the selected instance and its database are automatically applied to the number2 graph chart and the number3 Active Sessions table.

  • Number 2 Graph chart section

    The horizontal axis of each widget is time, and the vertical axis is the metric number. If you select a specific time period in each widget, Analysis > Counts Trend appears.

  • Number 3 Active sessions | Lock tree

    You can view the active session, lock tree, and process information.

    • Active sessions

      You can view active sessions and queries. If you select an item in the rightmost sql_text or query column in the table, the SQL details window appears. You can see the full text and plan information for the selected query. For more information, see the following.

    • Lock tree

      You can see the lock session information, and holder and waiter information in real time. For more information about the table columns, see the following.

Note
  • Colors in the database correspond to the ones in the graph chart.

  • For more information about Counts Trend, see the following.

  • For more information about each metric, see the following.

  • For more information about the columns, see the following.

Selecting a metric

You can change the metric of the graph chart widget placed on the screen to another one.

  1. Select Configuration icon on the upper right of the widget to change the metrics.

  2. If the Count selector window appears, select a desired metric.

    Count window

  3. Select Save.

The metric of the selected widget is changed.

Note

For more information about each metric, see the following.

Layout setting

To set the layout on the metrics chart, on the upper right of the screen, select Layout configuration icon. Nine (3x3) metrics charts are set on the default layout, and you can change the number of charts on a page.

Layout setting

Using the active session section

Through Active sessions at the bottom of the screen, you can see the real-time active sessions. The following provides the guide for the button on the upper right of the table.

  • Stop icon: You can stop changing the data collected in real time. To restart it again, select Start icon.
  • Refresh icon: The list of tables is refreshed.

  • Column icon: The column header entries in the table can be displayed or hidden.

  • Filter icon: You can filter the list based on the column header entries in the table. After selecting the button, you can set the conditions in each header column such as Includes, Excludes, Equal, and Unequal.

    Note

    Adjust the column width if the text field for filter condition options is invisible.

  • Download icon: You can download the content of the table as a CSV file.

Stopping an active session

You can stop a session(s) that has been running for a long time.

  1. In the Active sessions list, move your mouse cursor to the session to terminate.

  2. Select the Session kill icon that appears on the utmost right.

  3. If the Session kill window appears, enter the password.

  4. Select Apply.

The session is stopped.

Note
  • Through the paramkey.txt file in the DBX agent installation path, you can find the password.

  • This feature is only available to the members with Edit role. For more information about member roles, see the following.

Zooming in the graph chart section

Active session

If the current screen is small and difficult to see the widget, you can check the graph chart widget in a wider screen. Select Down arrow icon in the Active sessions section at the bottom of the screen. The Active sessions section is collapsed and the graph chart widget section is enlarged.

To zoom out the graph chart widget, select Up arrow icon at the bottom of the Active sessions section.

See query details

To check the SQL query information of the executing session, select the query (or sql_text) column in the Active sessions section. The SQL details window appears. You can check the SQL query statements and plan information.

SQL detail

  • View SQL Statistics: You can go to the SQL statistics menu where you can check statistical information related to the SQL query statement.

Changing the table columns

You can display or hide the column entries in the table, and change their order.

  1. Select Column icon on the upper right of the table.

  2. When the Column Setting window appears, hide, add, or change the order of items to be displayed in the table columns.

    • Select a column, and then Left arrow icon, Right arrow icon, Add icon or Minus icon. Go to Visible or Invisible.
    • You can move the position by dragging the column while it is selected.
  3. After all settings are finished, select Save.

Note

The setting is saved as a browser cookie value to maintain the state even after refreshing the page. If an error occurs between settings due to cookie deletion or other reasons, it is initialized.

Column information guide

For more information about columns, see the link.

ItemDescription
applicationName of the application that created the session.
blocking_session_idID of the session that is blocking the current session.
clientName or IP address of the client that created the session.
commandSQL command on which the session is running. (SELECT, INSERT, UPDATE, DELETE)
completion_timeTime when the SQL operation is expected to finish.
cpu(%)The rate of the CPU used by the session.
cpu_timeAmount of CPU time (milliseconds) used in the session.
cpu_time(sigma)Total CPU time used in all sessions.
dbName of the database to which the session is connected.
elapsed_timeElapsed time (milliseconds) since the session started.
granted_query_memoryAmount of memory (pages) allocated for query execution.
hostName of the client host that created the session.
isolationTransaction isolation level of the current session.
last_request_start_timeTime when the last request in the session started.
last_wait_typeLast type that the session waited for.
login_timeTime when the session logged into SQL Server.
logical_readsNumber of logical reads that occurred in the session.
logical_reads(sigma)Total number of logical reads that occurred across all sessions.
memory_usageAmount of memory the session uses.
objectName of the database object referenced by the running SQL statement.
objectidID of the object running in the session.
percent_completeCompletion rate of the executing command.
plan_handleHandle that identifies the SQL plan.
readsNumber of physical reads that occurred in the session.
reads(sigma)Total number of physical reads that occurred across all sessions.
row_countNumber of rows processed in the session.
sql_hashHash value of the SQL statement running in the session.
sql_paramParameter value of the SQL statement running in the session.
sql_textEntire text of the SQL statement running in the session.
statusCurrent state of the session. e.g. running, suspended, etc.
wait_resourceResource the session is waiting on.
wait_timeTime (milliseconds) that the session has been waiting.
wait_typeType of wait the session is waiting on.
writesNumber of physical writes that occurred in the session.
writes(sigma)Total number of physical writes that occurred across all sessions.
Note

WhaTap basically stores the client-related information.