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

  • 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 | Process Info

    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.

    • Process Info

      You can query the resource usage of the database server in real time.

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.

  • The Process Info can be viewed by additionally configuring the XOS agent. For more information, 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

ItemDescription
instanceAgent or instance name.
pidPID of the database process.
dbnameName of the connected database.
userUser name connected to the database.
query_timeQuery execution time.
transtatusCurrent state of the transaction.
queryExecuted SQL query.
query_hashHash value of the query.
query_paramParameters used for a query.
programProgram information executed by the client.
tranindexUnique number that identifies the running transaction.
tran_timeTime elapsed since the transaction began.
sql_idUnique ID for the running SQL query.
timeTask operation time
lock_holderSession that has locked the resources in the current transaction.
Note

WhaTap basically stores the client-related information.