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.
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.
Before you can use a monitor:
To monitor Adaptive Server, you must be connected to it using either:
To associate a login with a user, the system administrator can:
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:
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.
The status bar shows:
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.
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
Sample rates - average number of occurrences per second in the most recent sample interval.
To set the statistic type:
To open a monitor from the Sybase Central main window:
The monitor window refreshes automatically at the end of each sample interval.
To pause refreshes:
To resume refreshes:
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.
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.
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.
Shows high level resource information for currently running Adaptive Server applications. Use this monitor to:
This monitor shows information about the procedure cache and data cache. Use this monitor to:
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:
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:
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:
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:
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:
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:
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:
This monitor summarizes the principal Adaptive Server performance indicators. Use this monitor to:
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:
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:
Shows information about the currently executing SQL statement for a process, including the currently executing query plan. Use this monitor to:
There are two ways to select the process whose currently executing SQL text you want to see:
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:
Shows summary information about transaction activity handled by Adaptive Server. Use this monitor to:
Concepts for monitoring
Overview of monitoring capabilities
Monitoring requirements
Privileges required for monitoring
To enable non-sa monitoring:
Starting Monitor Server
You might need to refresh the Sybase Central window to get an up-to-date status indication.
Monitor status bar
Monitor Server names in Monitor Server tab
Concepts for sample interval
Rates (number/second)
= 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 open a monitor
To open a monitor from another monitor:
To pause or resume monitor refreshes
During the pause, Monitor Server continues to collect data in the background. The status bar indicates the paused state with the word "Pause."
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
Closing a monitor closes the connections to Monitor Server and Adaptive Server for the current monitor. It ends the current session.
Using Filters
To set a filter
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.
To set a top n filter
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
Note: If the dialog box does not include these buttons, the filter applies to the statistic type currently in effect.
To cancel a filter
Only one filter can be in effect at a time in a monitor.
Monitoring window description
List of Monitors
Application Activity Monitor
See also:
Application Activity Monitor Details
Tuning Using the Application Activity Monitor
Cache Monitor
See also:
Tuning Using the Cache Monitor
Data Cache Monitor
See also:
Data Cache Monitor Details
Tuning Using the Data Cache Monitor
Device I/O Monitor
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
See also:
Engine Activity Monitor Details
Tuning Using the Engine Activity Monitor
Memory Utilization Monitor
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
See also:
Network Activity Monitor Details
Tuning Using the Network Activity Monitor
Object Lock Status Monitor
See also:
Object Lock Status Monitor Details
Tuning Using the Object Lock Status Monitor
Object Page I/O Monitor
See also:
Object Page I/O Monitor Details
Tuning Using the Object Page I/O Monitor
Performance Summary Monitor
See also:
Performance Summary Monitor Details
Tuning Using the Performance Summary Monitor
Performance Trends Monitor
To Set Up the Performance Trends Monitor
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.
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
To jump to the Process Current SQL Statement Monitor from the Process Activity Monitor:
See also:
Process Activity Monitor Details
Tuning Using the Process Activity Monitor
Process Current SQL Statement Monitor
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.
See also:
Process Current SQL Monitor Details
Tuning Using the Process Current SQL Statement Monitor
Stored Procedure Activity Monitor
See also:
Stored Procedure Activity Monitor Details
Tuning Using the Stored Procedure Activity Monitor
Transaction Activity Monitor
See also:
Transaction Activity Monitor Details
Tuning Using the Transaction Activity Monitor