Monitor Client Interface

Contents

Concepts for monitoring
Overview of monitoring capabilities
Monitoring requirements
Privileges required for monitoring
Starting Monitor Server
Monitor status bar
Monitor Server names in Monitor Server tab
Concepts for sample interval
Rates (number/second)
To open a monitor
To pause or resume monitor refreshes
To close a monitor
Using Filters
Monitoring window description
List of Monitors

Glossary Appendix

Concepts for monitoring

Adaptive Server saves performance data in a shared memory area that Monitor Server reads. Because of this shared memory technique, Monitor Server must be installed and running on the same machine as the Adaptive Server Enterprise installation being monitored. A one-to-one relationship exists between Adaptive Server and Monitor Server.

The monitors in the Adaptive Server Enterprise Plug-in are clients of Monitor Server. When you open a monitor, you are connecting to Monitor Server. Monitor Server obtains the specific data requested by its clients from the Adaptive Server shared memory area.

Each monitor is a separate connection to Monitor Server. For example, if you are running two Cache monitors and one Data Cache monitor for the same Adaptive Server installation, you have three open connections to the Monitor Server associated with that Adaptive Server.

Overview of monitoring capabilities

You can use monitoring data to identify potential resource bottlenecks, to research current problems, and to tune for better performance.

Resource Statistics

Some of the resources that you can monitor are: CPU usage, page I/O, device I/O, locks, and network usage. Various combinations of these resources can be viewed at the following levels of detail:

Snapshot Data

Snapshot information, such as lock status, process status, and executing statements, is also available.

Refreshes

You can obtain refreshed performance data at any desired sample interval, from 1 second to 24 hours. You can also see cumulative statistics for the entire time a monitor is open.

Precise Values in Graphs

You can display the precise values represented in graphs by passing the mouse over a bar, line point, or pie section. The values display as small popups.

Monitoring requirements

Before you can use a monitor:

Privileges required for monitoring

To monitor Adaptive Server, you must be connected to it using either:

To associate a login with a user, the system administrator can:

To enable non-sa monitoring:
  1. Execute the mon_authorize_non_sa stored procedure in the Adaptive Server to be monitored. This stored procedure is in the master database. You can execute a stored procedure using SQL Advantage or isql.
  2. If the mon_authorize_non_sa stored procedure is not in the master database or if it issues an error message indicating that two-phase commit needs to be installed, some steps were omitted during the Adaptive Server and Monitor Server installation process. See the latest Release Bulletin for Adaptive Server Monitor for specific instructions.

Starting Monitor Server

If Monitor Server is installed on the same machine as the Sybase Central installation, you can start it by right-clicking its icon and choosing the Start command from the drop-down menu. Monitor Server reads startup parameters from the NT Registry. The Monitor Server icon indicates one of the following server states:

You might need to refresh the Sybase Central window to get an up-to-date status indication.

If Monitor Server is not installed on the Sybase Central machine, you do not have control over it from Sybase Central and Sybase Central cannot know whether it is running.

See Adaptive Server Enterprise Monitor Server User's Guide for instructions on starting Monitor Server.

Monitor status bar

The status bar shows:

Monitor Server names in Monitor Server tab

The list of Monitor Server names in the drop-down box on the Monitor Server tab lists the contents of the sql.ini or other Directory Service file on the Sybase Central machine. If the correct Monitor Server is not in the list, use the dsedit utility to add Monitor Server to the sql.ini or other Directory Service file.

Each Adaptive Server installation has a unique Monitor Server configured for it. If you do not know the correct Monitor Server name, refer to the Directory Service, sql.ini (Windows NT) or interfaces (UNIX) file on the Adaptive Server host machine.

Concepts for sample interval

Short sample intervals cause frequent refreshes of data in a monitor. When data refreshes so often that you cannot read the display, choose a longer interval or pause the refreshes

The status bar indicates the time that the last samplesamples was obtained by Monitor Server

You might notice discrepancies in the rates reported by different monitors for related data items over the same sample interval. Discrepancies might occur because the rates are averaged over the period of the actual sample interval for each data point. The actual sample interval for several data points can vary with network traffic and server activity, even among sampling requests made at the same time. Differences in sample interval lengths can also cause discrepancies in data.

Very short sample intervals in monitors that obtain many event summaries can potentially have an effect on a busy Adaptive Server installation. For more information about event summaries, see the Adaptive Server Enterprise Monitor Server User's Guide.

You can change the sample interval in the middle of a session without affecting the cumulative values collected for the session.

To set the sample interval

  1. Choose View--> Sample Interval. The Set Sample Interval dialog box opens.
  2. Click in the appropriate box and change the displayed value to the desired new hours, minutes, or seconds.

Rates (number/second)

Sample rates - average number of occurrences per second in the most recent sample interval.

= Count for the most recent sample / Number of seconds in a sample interval
Cumulative rates - average number of occurrences per second in the current session.
= Cumulative count for the session / Number of seconds since monitor opened

To set the statistic type:

  1. Choose View-->Statistics.
  2. From the cascading menu, choose the type of statistics that you want the monitor to display. Choices that do not apply to the current monitor do not show up in the cascading menu. The possible choices are:
    • Sample - unless otherwise labeled, all rates, counts, and percentages on the monitor reflect activity for the last sample interval
    • Cumulative - unless otherwise labeled, all rates, counts, and percentages on the monitor reflect activity for the entire session
    • Both - where applicable, both sample and cumulative data are displayed.

To open a monitor

To open a monitor from the Sybase Central main window:

  1. Select the Monitors folder under the Adaptive Server you want to monitor. If a Monitors folder is not in the tree, read about Configuring the Monitors folder.
  2. In the right pane, double click the monitor you want to open.
To open a monitor from another monitor:
  1. From the title bar of any open monitor, choose File-->Monitors.
  2. In the cascading menu, choose the monitor you want to open. The new monitor gathers statistics for the same Adaptive Server as the original monitor.

To pause or resume monitor refreshes

The monitor window refreshes automatically at the end of each sample interval.

To pause refreshes:

  1. Choose View-->Pause.
During the pause, Monitor Server continues to collect data in the background. The status bar indicates the paused state with the word "Pause."

To resume refreshes:

  1. Choose View-->Resume.
The next sample reflects all activity that occurred during the pause, plus the latest sample. The status bar indicates the resumed state with the word "Run."

To close a monitor

  1. In the monitor window (not the Sybase Central main window), choose File-->Close.
Closing a monitor closes the connections to Monitor Server and Adaptive Server for the current monitor. It ends the current session.

If you reopen the same monitor, you are establishing a new session. All menu settings are reset to their default values and all activity counters and session values are reset to zero.

Using Filters

To set a filter

  1. Select Filter-->filterName, where filterName is any command in the Filter menu.
  2. Complete the dialog box and click OK. For more information about a specific dialog box, click the Help button on the dialog box.
When you open a filter dialog box, it shows the filter value selection you made the last time you used the dialog box. A checkmark beside a filter name in the Filter menu indicates which filter is currently active.

A newly set filter is effective immediately. The next refresh displays filtered data.

Note: The top n and threshold filters can be implemented by selecting a filter command for a numeric data item.

To set a top n filter

  1. Select the Top button from the filter dialog box.
  2. In the Number box, enter the number of rows you want displayed.
  3. If the dialog box includes buttons for selecting the statistic type:
    1. Select the Sample button to apply the filter to data from the most recent sample.
    2. Select the Cumulative button to apply the filter to cumulative (session) data.
Note: If the dialog box does not include these buttons, the filter applies to the statistic type currently in effect.

To set a threshold filter

  1. Select the Threshold button from the filter dialog box.
  2. In the Value box, enter a threshold value. It must be a positive integer. The monitor displays values that are equal to and above the specified threshold value.
  3. If the dialog box includes buttons for selecting the statistic type:
    1. Select the Sample button to apply the filter to data from the most recent sample.
    2. Select the Cumulative button to apply the filter to cumulative (session) data.
Note: If the dialog box does not include these buttons, the filter applies to the statistic type currently in effect. To cancel a filter
  1. Do either of the following:
    • To cancel the current filter without implementing a new one, choose Filter -->No Filter.
    • To cancel the current filter and set a new one, choose Filter and any other command in the Filter menu.
Only one filter can be in effect at a time in a monitor.

Monitoring window description

Title bar -- The title bar shows the name of the Adaptive Server being monitored.

Menus -- The menu bar and menu commands are context sensitive based on the current monitor. Menus and commands that do not apply to the current monitor do not display or are gray.

Status bar -- The status bar at the bottom of the window shows sample interval information and run status of the monitor.

Scroll bars -- The monitor display contains scroll bars whenever they are needed to display the entire range of data. Font and window size -- You can resize a monitor window by grabbing the window edges.

Column width -- You can adjust column widths in monitor table displays by dragging the column header to the desired size.

Precise values in graphs -- You can display the precise values represented in graphs by passing the mouse over a bar, line point, or pie section. The values display as small popups.

List of Monitors

  1. Application Activity Monitor
  2. Cache Monitor
  3. Data Cache Monitor
  4. Device I/O Monitor
  5. Engine Activity Monitor
  6. Memory Utilization Monitor
  7. Network Activity Monitor
  8. Object Lock Status Monitor
  9. Object Page I/O Monitor
  10. Performance Summary Monitor
  11. Performance Trends Monitor
  12. Process Activity Monitor
  13. Process Current SQL Statement Monitor
  14. Stored Procedure Activity Monitor
  15. Transaction Activity Monitor

Application Activity Monitor

Shows high level resource information for currently running Adaptive Server applications. Use this monitor to:

See also:

Application Activity Monitor Details
Tuning Using the Application Activity Monitor

Cache Monitor

This monitor shows information about the procedure cache and data cache. Use this monitor to:

See also:

Tuning Using the Cache Monitor

Data Cache Monitor

This monitor shows overall activity and efficiency levels of the 10 most active data caches (including named data caches and the default cache) during the current session. Use this monitor to:

See also:

Data Cache Monitor Details
Tuning Using the Data Cache Monitor

Device I/O Monitor

Shows device I/O activity on the database devices defined for Adaptive Server. The I/O counts on this monitor are buffer counts, not page counts. Use this monitor to:

Note: Individual database devices have different I/O rate capacities. Do not use activity level by itself as an indicator of potential or actual bottlenecks.

See also:

Device I/O Monitor Details
Tuning Using the Device I/O Monitor

Engine Activity Monitor

Shows details about the current CPU load caused by Adaptive Server task processing. The monitor isolates the time Adaptive Server spends processing tasks versus the total CPU time used by Adaptive Server. Use this monitor to:

See also:

Engine Activity Monitor Details
Tuning Using the Engine Activity Monitor

Memory Utilization Monitor

Displays a pie chart showing Adaptive Server memory allocations. The information is based on Adaptive Server configuration parameter values, and is therefore static. Use this monitor after you:

Note: Use this monitor occasionally, to obtain an idea of how memory is allocated for Adaptive Server. During the period between your request to open the monitor and the appearance of this monitor, Adaptive Server performance may noticeably degrade.

Network Activity Monitor

This monitor shows packet volume and packet sizes used for communication between Adaptive Server and its clients. The monitor also shows values of some Adaptive Server configuration parameters that affect network traffic. Use this monitor to:

See also:

Network Activity Monitor Details
Tuning Using the Network Activity Monitor

Object Lock Status Monitor

Shows details about currently held or blocked locks on tables. The data is sorted using the following keys: database, object within database, page within object, and status within page. This ordering makes blocked and blocking processes show up next to each other in the list. Use this monitor to:

See also:

Object Lock Status Monitor Details
Tuning Using the Object Lock Status Monitor

Object Page I/O Monitor

Shows physical and logical page I/O statistics associated with tables and their indexes. It shows activity on all tables, including system tables, temporary work tables, and database tables. Use this monitor to:

See also:

Object Page I/O Monitor Details
Tuning Using the Object Page I/O Monitor

Performance Summary Monitor

This monitor summarizes the principal Adaptive Server performance indicators. Use this monitor to:

See also:

Performance Summary Monitor Details
Tuning Using the Performance Summary Monitor

Performance Trends Monitor

Plots values for selected statistics for up to 60 sample intervals. You select the statistics you want to plot from a dialog box when you open the Performance Trends monitor. Each statistic you choose is presented in a separate graph. The x axis shows sample intervals, with 0 indicating the most recent sample interval, and negative values showing past intervals. The Y axis shows the values for the statistic you requested. Use this monitor to:

To Set Up the Performance Trends Monitor

  1. Open the Performance Trends monitor.
  2. In the Performance Trends dialog box, choose one or more items that you want to see graphs for.
    Each item will have a separate graph. If there is not enough room on your terminal to display graphs for all of the items you choose, the monitor shows titles without the graphs.
  3. From the Performance Trends monitor, choose View -->Sample Interval to set the sample interval length.
    The monitor displays 60 sample intervals at a time. If you set sample interval to 10 seconds, you can see the activity trends for 10 minutes at a time. If you set sample interval to 30 minutes, you can see the activity trends for 30 hours at a time.

Process Activity Monitor

Shows high level resource information for currently running Adaptive Server processes. If a process consists of worker threads, the monitor adds all data for all worker threads and presents only the totals for the parent thread (the process). Use this monitor to:

To jump to the Process Current SQL Statement Monitor from the Process Activity Monitor:
  1. Select a process by clicking on it.
  2. Select File -->Monitors.
  3. From the cascading menu, select Process Current SQL Statement.

See also:

Process Activity Monitor Details
Tuning Using the Process Activity Monitor

Process Current SQL Statement Monitor

Shows information about the currently executing SQL statement for a process, including the currently executing query plan. Use this monitor to:

SQL statement text is collected in the background only when this monitor is open. The monitor must be opened before a batch or stored procedure starts executing to catch information about it. Therefore, you might want to open this monitor at the start of each day, or whenever you start Sybase Central, or at least before starting any applications or stored procedures that are the source of long-running, blocking, or hanging SQL statements.

There are two ways to select the process whose currently executing SQL text you want to see:

See also:

Process Current SQL Monitor Details
Tuning Using the Process Current SQL Statement Monitor

Stored Procedure Activity Monitor

Shows statistics on execution, page I/O, and locks for all stored procedures and triggers that have executed during the sample or session. (A trigger is a special type of stored procedure.) Use this monitor to:

See also:

Stored Procedure Activity Monitor Details
Tuning Using the Stored Procedure Activity Monitor

Transaction Activity Monitor

Shows summary information about transaction activity handled by Adaptive Server. Use this monitor to:

See also:

Transaction Activity Monitor Details
Tuning Using the Transaction Activity Monitor