Help for Foxhound 4.0.4740a

Table of Contents     [RisingRoad]


Foxhound 4 

3. The Monitor Database Page

The Monitor Database page shows current server and database-level performance statistics for a target database, as well as information about current connections. This information is collectively referred to as a "sampling session" because it is gathered (sampled) at regular intervals rather than recorded on a continuous basis.

3.1 The Monitor Database Menu

3.2 The Monitor Control Panel

3.3 The Monitor Status Area

3.4 Most Recent Sample

3.5 Peaks

3.6 Recent Samples

3.7 Connections


Foxhound 4 » 3. The Monitor Database Page 
3.1 The Monitor Database Menu

« Back to Menu        New Menu    Schema    History    Foxhound Options    Monitor Options    About  -   Mmm Dd yyyy...   

The « Back to Menu link displays the main Foxhound menu page in the current browser window or tab.

The drop-down lets you choose the DSN or Connection String name of the target database currently being displayed.

You can switch between different target databases in the same Monitor page,

You can also open multiple Monitor pages to show the same or different target databases.

Note that when you open multiple Monitor pages for the same target database, they show the same data; they do not represent different sampling sessions.

The New Menu link opens the main Foxhound menu page in a new browser window or tab.

The Schema link opens the Display Schema page for this target database in a new browser window or tab.

The History link opens the History page for this sampling session in a new browser window or tab

The Foxhound Options link opens the Foxhound Options page in a new browser window or tab.

The Monitor Options link opens the Monitor Criteria page in a new browser window or tab. That page lets you enable and disable different alerts, change the conditions under which alerts are issued and manage multiple Monitor sessions using a tab-delimited file of connection strings.

The About link opens the About Foxhound page in a new browser window or tab.

The Mmm Dd yyyy... timestamp shows when this Monitor page was displayed.


Foxhound 4 » 3. The Monitor Database Page 
3.2 The Monitor Control Panel
The Monitor Control Panel lets you view and control the Foxhound Monitor sampling and display processes. These processes are completely separate:

Sampling Running               

The status field displays

The button lets you stop the sampling session. This doesn't delete the session, it just suspends the sampling process.

When sampling is stopped, all active alerts are cancelled because Foxhound is no longer gathering the information required the check the alert criteria.

The "...Sample Schedule in effect" link may appear instead of the Stop Sampling and Start Sampling buttons. If sampling is under the control of a Sample Schedule, you can't stop and start sampling manually, you have to adjust (or turn off) the schedule on the Monitor Options page.

The button may appear instead of Stop Sampling. The Cancel Request button lets you stop further attempts to start or re-start the sampling session.

If Foxhound can't connect to the target database, it will keep trying forever, unless you press Cancel Request or the connection timeout period is exceeded. See the Foxhound Options page for more information on connection timeouts.

The button tells Foxhound to try to start the sampling session.

The button immediately updates the information displayed on this page without waiting for the regular refresh.

If the display is paused but the sampling session is running, you can press Refresh Display to show the most recent sample without restarting the automatic refresh process.

The (number) in parentheses in the Refresh Display button tells you how many times this page has been refreshed.

The button stops the Monitor page from being refreshed every 10 seconds, and the button starts it again.

Neither button affects the background sampling process one way or the other. For example, if the sampling session is running and you press Disable Refresh and later press Enable Refresh, the displayed data "catches up" with the most recent sample.

The button immediately and permanently deletes Foxhound's current record of peak sample values for this target database, causing the Peaks since section to disappear.

The recording of peak values will automatically restart with the next successful sample and the Peaks section will reappear.

The Reset Peaks button has no effect on the sample data itself, just the record of peak values.

Performance Tip: Think twice before pressing the button. That's because Foxhound doesn't let you save or restore old peak values once they have been reset.

One reason to reset the peaks is when most of the peaks are so old they're no longer relevant; for example, the peaks predate major improvements made to database performance or they point to samples that have been purged,


Foxhound 4 » 3. The Monitor Database Page 
3.3 The Monitor Status Area
Status

Machine: Name

Server: Name

Database: Name

Started At:

Running Time:

Cache:

DB DBSpace - Size, Used, Frags, Avail, File

Log DBSpace - Size, Used, Frags, Avail, File

Temp DBSpace - Size, Used, Frags, Avail, File

GlobalDBID:

SPs:

Purge:

Favorable?

Software: Version

DB File: Version

Database Disposition

Duplicate Foxhound sampling sessions.


Foxhound 4 » 3. The Monitor Database Page » 3.3 The Monitor Status Area 
Status
The status field displays

Foxhound 4 » 3. The Monitor Database Page » 3.3 The Monitor Status Area 
Machine: Name
The Machine: name is the computer or host name of the computer running SQL Anywhere.
The Machine: name is displayed for target databases running on SQL Anywhere 8 and later and is based on the server-level MachineName property.

Foxhound 4 » 3. The Monitor Database Page » 3.3 The Monitor Status Area 
Server: Name
The Server: name is the name dynamically assigned at runtime by SQL Anywhere to the executable instance of SQL Anywhere running this target database.
It defaults to be the same as the Database: name, or it can be explicitly set by the -n server name command line parameter:
Command Line                      Server Name  Database Name
-----------------------------     -----------  -------------
dbsrv17 demo1.db                     demo1         demo1
dbsrv17 demo2.db -n ddd2             ddd2          ddd2
dbsrv17 -n sss3 demo3.db             sss3          demo3
dbsrv17 -n sss4 demo4.db -n ddd4     sss4          ddd4

See also Alert #11 ServerName change.

The Server: name is displayed for target databases running on SQL Anywhere 10 and later and is based on the server-level ServerName property.


Foxhound 4 » 3. The Monitor Database Page » 3.3 The Monitor Status Area 
Database: Name
The Database: name is the name dynamically assigned at runtime by SQL Anywhere to this target database.
It defaults to be the same as the file name portion of the database file specification, or it can be set by the -n database name command line parameter for this target database:
Command Line                      Server Name  Database Name
-----------------------------     -----------  -------------
dbsrv17 demo1.db                     demo1         demo1
dbsrv17 demo2.db -n ddd2             ddd2          ddd2
dbsrv17 -n sss3 demo3.db             sss3          demo3
dbsrv17 -n sss4 demo4.db -n ddd4     sss4          ddd4
The Database: name is based on the database-level Name property.

Foxhound 4 » 3. The Monitor Database Page » 3.3 The Monitor Status Area 
Started At:
The Started At: field tells you when the target server was started, relative to the computer on which Foxhound is running.
It is possible for individual databases to be started via the START DATABASE statement long after the server was started (and stopped and re-started via STOP and START DATABASE statements). Generally, however, databases are started when the server starts, and the Started At field applies to the database as well as the server.

Started At is displayed for target databases running on SQL Anywhere 8 and later, and is based on the server-level StartTime property.


Foxhound 4 » 3. The Monitor Database Page » 3.3 The Monitor Status Area 
Running Time:
The Running Time: field tells you how long the target server has been running.
It is possible for individual databases to be started via the START DATABASE statement long after the server was started (and stopped and re-started via STOP and START DATABASE statements). Generally, however, databases are started when the server starts, and the Running Time field applies to the database as well as the server.

Running Time is displayed for target databases running on SQL Anywhere 8 and later, and is based on the server-level StartTime property.


Foxhound 4 » 3. The Monitor Database Page » 3.3 The Monitor Status Area 
Cache:
The Cache: and % of Max fields tells you how much RAM the server is using for the database cache, and how current cache size compares with the maximum.
Performance Tip: A small Cache value together with 100% of Max may indicate that insufficient memory in the database cache is a performance bottleneck. Historical rules-of-thumb no longer apply to modern databases; for example, "The cache should be at least 10% as large as the database file" has been replaced with "You can never have too much RAM cache!" Depending on the workload, a cache that's even larger than the database file may be justified by queries that use enormous quantities of temporary space.
See also Alert #19 Cache size.

Performance Tip: If the computer is dedicated to running this SQL Anywhere server and no other process of importance, consider disabling the automatic cache size tuning process by specifying the -ca 0 and -c options to set a fixed cache size. With a dedicated computer there may be no need for SQL Anywhere to perform extra work changing the cache size up and down.

The Cache and % of Max fields are displayed for target databases running on SQL Anywhere version 7 and later, and are based on the server-level CurrentCacheSize and MaxCacheSize properties.


Foxhound 4 » 3. The Monitor Database Page » 3.3 The Monitor Status Area 
DB DBSpace - Size, Used, Frags, Avail, File

Foxhound 4 » 3. The Monitor Database Page » 3.3 The Monitor Status Area 
Log DBSpace - Size, Used, Frags, Avail, File

Foxhound 4 » 3. The Monitor Database Page » 3.3 The Monitor Status Area 
Temp DBSpace - Size, Used, Frags, Avail, File

Foxhound 4 » 3. The Monitor Database Page » 3.3 The Monitor Status Area 
GlobalDBID:
The GlobalDBID field is displayed if the SET OPTION PUBLIC.global_database_id statement has been used set the GlobalDBId database property to a non-default value.
The GlobalDBId value is used as the partition number for columns using the DEFAULT GLOBAL AUTOINCREMENT attribute.

It also serves to uniquely identify the database in MobiLink synchronization and SQL Remote replication setups.

The value 0 is often used for the consolidated database, and the values 1, 2, 3... are used for remote databases.

The GlobalDBID is available for adhoc queries; e.g.:

SELECT TOP 1 GlobalDBID
  FROM sample_detail
 WHERE sampling_id = 23
 ORDER BY sample_set_number DESC;

          GlobalDBID 
-------------------- 
                 123 

GlobalDBID is displayed for target databases running on SQL Anywhere 7 and later, and is based on the database-level GlobalDBID property.


Foxhound 4 » 3. The Monitor Database Page » 3.3 The Monitor Status Area 
SPs:
The SPs field displays YYY, NNN or some combination of Ys and Ns to indicate whether or not Foxhound has deployed, and is using, these three stored procedure on the target database: rroad_connection_properties, rroad_database_properties and rroad_engine_properties.
Those three procedures optimize the Foxhound sampling process. Without them, Foxhound can still gather samples but it has to work harder to do it.

Performance Tip: Foxhound's own performance can be greatly reduced if SPs isn't all Ys, or at least YNN.

How To Install The Foxhound SPs

Three stored procedures are delivered with Foxhound for installation on your target databases.

These procedures are optional but highly recommended:

  • rroad_connection_properties greatly improves Foxhound performance when the target database has a large number of client connections.

  • rroad_database_properties improves Foxhound performance when gathering database-level properties, as well as enabling these Foxhound display fields:
    • Log Size - based on DB_EXTENDED_PROPERTY ( 'FileSize', 'translog' )
    • Log Used - based on DB_EXTENDED_PROPERTY ( 'FreePages', 'translog' )
    • Temp Size - based on DB_EXTENDED_PROPERTY ( 'FileSize', 'temp' )
    • Temp Used - based on DB_EXTENDED_PROPERTY ( 'FreePages', 'temp' )
    • Temp Frags - based on DB_EXTENDED_PROPERTY ( 'DBFileFragments', 'temp' )

  • rroad_engine_properties improves Foxhound performance when gathering server-level properties.

Foxhound will automatically install and call these stored procedures if it can.

The phrase "if it can" means "the user id with which Foxhound connects to the target database has the RESOURCE authority" as in:

GRANT RESOURCE TO FOXHOUND;
Foxhound will keep trying to install those procedures each time it connects to the target database; e.g., each time sampling is stopped and started, or each time Foxhound is started.

As mentioned above, Monitor performance will suffer without those procedures, especially if the target database has a lot of connections. The Foxhound Monitor page displays SPs YYY if finds the three procedures, and SPs NNN if it doesn't.

. . . but Wait, There Is Another Way!

If you don't want to let the Foxhound user id to have either RESOURCE or DBA privileges on the target database, but you are willing to install those three procedures on the target database yourself, here's how:

(Note: If you choose to use this method, you will have to repeat these steps for each target database you wish to monitor, and again each time you upgrade to a new version or build of Foxhound.)
  1. Create a user id to be used by Foxhound on the target database; e.g.:
    GRANT CONNECT TO FOXHOUND IDENTIFIED BY 'ZAdt5Yq8';
    

  2. Find the following three text files in the Foxhound folder (which defaults to C:\ProgramData\RisingRoad\Foxhound4 on Windows 7 and C:\Documents and Settings\All Users\Application Data\RisingRoad\Foxhound4 on Windows XP):
    rroad_connection_properties.sql
    rroad_database_properties.sql
    rroad_engine_properties.sql
    

  3. Edit each file to specify the user id you chose in step 1; e.g., change {OWNER} to FOXHOUND:
    CREATE PROCEDURE FOXHOUND.rroad_connection_properties() 
    CREATE PROCEDURE FOXHOUND.rroad_engine_properties() 
    CREATE PROCEDURE FOXHOUND.rroad_database_properties(d INTEGER) 
    

  4. Use dbisql to run those files against the target database.

  5. If the Foxhound Monitor is already connected to the target database, click on Stop Sampling, then Start Sampling.

  6. Check to make sure "SPs YYY" appears on the Foxhound Monitor page.


Foxhound 4 » 3. The Monitor Database Page » 3.3 The Monitor Status Area 
Purge:
The Purge field summarizes what the Foxhound purge process is set up to do.
It displays "Off" if no purging is enabled, and "After xx day(s)" if one or the other or these options are enabled:
                 Purge all sample data enabled: [x] After [xx] day(s).
   Purge uninteresting connection data enabled: [x] After [xx] day(s).	

You can click on the Purge link to open Monitor Options - 6.6 Purge.


Foxhound 4 » 3. The Monitor Database Page » 3.3 The Monitor Status Area 
Favorable?
The Favorable? field displays a combination of three Y, N and - characters to indicate whether or not three settings on the target database are (or were) favorable to the recording of data for Foxhound to display on the Monitor, History and Connection History pages:

You can click on the Favorable? link to open Monitor Options - 14. Change Target Settings to change these three settings:

  1. The RememberLastPlan server option controls whether or not anything is displayed in this connection-level field:

    • Last Plan Text

  2. The RememberLastStatement server option controls whether or not anything is displayed in these connection-level fields:

    • Blocked Statement
    • Last Statement

  3. The RequestTiming server option controls whether or not anything is displayed in these connection-level columns:

    • Throughput... Req
    • Waiting Time
    • Busy, Wait, Idle

Performance Tip: Number 2 (RememberLastStatement) is by far the most useful of the three.

Performance Tip: Changes to these server options only affect future samples gathered by Foxhound; there is no way to go back and "fix" historical data.

Performance Tip: Changes to these server options on a High Availability primary database or a Read-Only Scale-Out root database will not be automatically transmitted to a secondary or copy database.

However, since these are server options rather than database options, you can use the Favorable? field on the secondary or copy database to make the same changes even though the Foxhound connections to those databases are read-only.

Performance Tip: After a High Availability failover, it is possible for the Favorable? field on the Monitor page for the secondary database to show different values from the Change Target Settings section on the Monitor Options page for the "same" database (which isn't actually the same any more).

If the target database is a High Availability secondary database and a failover occurs (primary fails, secondary takes over), the Favorable Current Settings? column may show [not available].

The reason for this is that the Monitor Options - Change Target Settings section attempts to open a new connection to the secondary database, and the database that used to be the secondary is now the primary so there's no secondary database available. The Foxhound sampling session, however, remains connected to the original database (once the secondary, now the primary) so there is an apparent inconsistency between Favorable Current Settings? showing [not available], and the Foxhound Monitor page showing that everything is OK.

But wait, there's more! If the failed database that was the original primary database is restarted, it will become the new secondary database, and the Favorable Current Settings? column will show actual values rather than [not available]... but those values will be coming from a different database than the Foxhound sampling session is showing. That's because the Monitor Options - Change Target Settings section opens a new connection to the secondary database, and the Foxhound Monitor session remains connected to the original database (once the secondary, now the primary).

The RememberLastStatement server option is supported by target databases running on SQL Anywhere version 8 and later, while the RememberLastPlan and RequestTiming server options are supported by target databases running on SQL Anywhere version 9 and later.


Foxhound 4 » 3. The Monitor Database Page » 3.3 The Monitor Status Area 
Software: Version
The Software: Version field tells you what version and build number of SQL Anywhere software is being used to run the target database.
Server version is based on the server-level ProductVersion property.

Foxhound 4 » 3. The Monitor Database Page » 3.3 The Monitor Status Area 
DB File: Version
The DB File: Version field shows the version and build number of the SQL Anywhere software that was used to initialize the target database file.
For databases created with SQL Anywhere 5.5 through 8 the DB File: Version is determined by a variety of methods. In some cases the result may be imprecise, especially for databases that have been processed by the dbupgrade utility.

For database files created with SQL Anywhere Version 9 and later the DB File: Version is based on the SYSHISTORY table.


Foxhound 4 » 3. The Monitor Database Page » 3.3 The Monitor Status Area 
Database Disposition
The untitled "database disposition" field describes how this target database appears to client connections and its relationship to other databases in a High Availability or Read-Only Scale-Out setup.
Updatable primary database. Arbiter is connected. Partner is connected, synchronized.

Read-only secondary (mirror) database. Arbiter is connected. Partner is connected, synchronized.

Read-only copy database. 

Read-only database.

Updatable database. [default, not displayed]

See also...

Alert #9 Arbiter unreachable

Alert #10 Partner unreachable

Alert #30 Database read-only

Alert #31 Database updatable

Alert #35 Separate ping failed

The database disposition field is displayed for target databases running on SQL Anywhere 8 and later.

For target databases running on SQL Anywhere 8 through 10 it is based on the database-level ReadOnly property, and for SQL Anywhere 11 and later it is based on the database-level properties ArbiterState, MirrorState, PartnerState and ReadOnly.

Foxhound 4 » 3. The Monitor Database Page » 3.3 The Monitor Status Area 
Duplicate Foxhound sampling sessions.
This warning message appears on the Monitor page when two or more separate Foxhound sampling sessions exist for the same target database.
 Duplicate Foxhound sampling sessions. There is more than one Foxhound connection to this target database. 

This can happen after a High Availability failover where two separate Foxhound sessions that were previously monitoring the primary and secondary servers are now both connected to the (new) primary server; here's how:

Depending on the connection strings used by Foxhound, you may be able to force the Foxhound session that was previously connected to the (old) secondary server to switch over to the (new) secondary server: click on the Stop Sampling button, wait for sampling to stop, and then click on Start Sampling.

This can also happen when two different Foxhound connection strings are created pointing to the same target database, or a ODBC DSN is used as well as a Foxhound connection string. This is almost always a mistake, and it can lead to multiple Alert email messages when the duplicate sampling sessions all detect the same condition; e.g., Alert #1 Database unresponsive.

Foxhound checks for duplicate sampling sessions by counting the number of target database connections with connection names that begin with 'Foxhound-Monitor-'. If you have used section 15. Monitor Connection Settings of the Foxhound Monitor Options page to change the format of those connection names, Foxhound will not detect the duplication.

The Duplicate Foxhound sampling sessions message is displayed for target databases running on SQL Anywhere 8 and later, and is based on the connection-level Name property.


Foxhound 4 » 3. The Monitor Database Page 
3.4 Most Recent Sample
Most Recent Sample

Interval

Response... Heartbeat, Sample, Ping

Throughput... Req, Commits, Bytes

Conns / Parent, Child Conns

Executing, Idle, Waiting Conns

Active Req, Max Req, Unsch Req

Locks Held, Conns Blocked, Waiting Time

CPU

Temp Space, Rollback Log, Uncommitted

Cache Panics, Low Memory, Satisfaction

Checkpoints, Checkpoint Urgency, Recovery Urgency

Disk/Cache: Internal Index, Leaf, Table

Incomplete Reads, Writes

Disk Reads, Disk Writes, Log Writes

Index Adds, Lookups, Satisfaction

Full Index Comps


Foxhound 4 » 3. The Monitor Database Page » 3.4 Most Recent Sample 

The Most Recent Sample section shows the most recent successful sample, if there is one.

A "successful sample" is one that actually shows performance data rather than a message like "Database server not found".

Note: The sample shown in the Most Recent Sample section might not even be visible in the Recent Samples section.

That can happen when the successful sample shown in the Most Recent Sample section is followed chronologically by so many unsuccessful samples (e.g., Database not found) that it doesn't appear on-screen in the Recent Samples section.

The Most Recent Sample section consists of 4 or 5 lines:

The sample age is highlighted like this  (25.7s)  until it grows longer than one minute when the highlighting changes to this  (1m 6.3s) .

Performance Tip:

The other columns are highlighted according to the values in the Peaks section, as follows:

Dashes "-" are displayed for omitted column values instead of empty spaces. This makes it clear which values are not available or not applicable, and it also makes the resulting text somewhat easier to read when you use copy-and-paste. For example, the "CPU" percentage appears as a dash "-" for the first sample because it can only be calculated for second and later samples.

Note: This use of dashes "-" does not apply to columns which have been entirely omitted because the data is not available for the version of SQL Anywhere being used for the target database; e.g., the "CPU" column does not appear at all for version 5 and 6 target databases.

Foxhound 4 » 3. The Monitor Database Page » 3.4 Most Recent Sample 
Most Recent Sample
The Most Recent Sample column shows the date/time that Foxhound recorded the most recent successful sample.
You can click on the link to open the History page in a separate browser window or tab, scrolled to the associated sample.

Foxhound 4 » 3. The Monitor Database Page » 3.4 Most Recent Sample 
Interval
The Interval column shows the actual time interval between the previous sample and this one.
Foxhound tries to record a new sample every 10 seconds but the actual interval can vary.

Foxhound uses the interval time to convert performance statistics from cumulative counts to rates; e.g., to convert the total number of disk writes into the number of disk writes per second.

A very long interval like 1h 19.8m may indicate the computer was in sleep, standby or hibernate mode.

See also Alert #1 Database unresponsive.


Foxhound 4 » 3. The Monitor Database Page » 3.4 Most Recent Sample 
Response... Heartbeat, Sample, Ping
Response time, also known as latency or access time, is a measure of how long it takes the database to respond to a single request:

The Response... Heartbeat time column shows how long it took for Foxhound to execute the SELECT * FROM DUMMY heartbeat or "canarian" query.

Performance Tip: Heartbeat time should be very small. Repeated values larger than 1s may indicate a performance bottleneck, and sudden increases in value may indicate a period of non-responsiveness.
Note that there's a difference between precision and accuracy; for example, two successive Heartbeat measurements like 25ms and 50ms may be very precise but they may not accurately represent an immediate 100% slowdown in performance.

On the other hand, a long period of Heartbeat values averaging 25ms, followed by a long period of 50ms numbers, may indeed accurately reflect a significant change in performance.

See also Alert #2 Long heartbeat.

Heartbeat time is calculated by Foxhound; it is not based on any builtin SQL Anywhere properties.

The Response... Sample time column shows how long it took for Foxhound to gather all the performance data for this sample.

Sample time should always be longer than Heartbeat time, and it will grow longer with an increasing number of connections because of the extra work involved to analyze each sample.

The Sample time is calculated after Heartbeat time and the two values do not overlap. It is possible for the Heartbeat time to be much longer than the Sample Time (e.g., 10m versus 100ms) when the target database becomes unresponsive but eventually responds; the long Heartbeat time reflects the unresponsiveness whereas the subsequent short Sample Time measures the return to normal.

Performance Tip: A long Sample Time may indicate a performance problem with Foxhound rather than the target database; e.g.:

To see where the performance problem lies, repeatedly run the following ISQL script against your target database; if this script runs quickly but Foxhound reports a large Sample Time, the problem lies with Foxhound:
SELECT * INTO #temp1 FROM rroad_engine_properties();
SELECT * INTO #temp2 FROM rroad_database_properties(1);
SELECT * INTO #temp3 FROM rroad_connection_properties();
DROP TABLE #temp1;
DROP TABLE #temp2;
DROP TABLE #temp3;

See also Alert #3 Long sample time.

Sample time is calculated by Foxhound; it is not based on any builtin SQL Anywhere properties.

The Response... Ping time column shows how long it took for Foxhound to connect and disconnect from the target database.

Performance Tip: Long Ping times may indicate that a performance bottleneck is preventing the target database from accepting new connections on a timely basis.
Ping times for local "shared memory" connections may be similar to or even smaller than Sample times for the same database, but they will usually be larger than Heartbeat times.

Ping times for network connections may be much longer than Ping times for local connections.

Foxhound uses a custom "ping" process to test separate connections to the target database.

Each time the ping process runs it opens a new connection to the target database via the embedded SQL interface, issues a SELECT @@SPID command and then immediately disconnects.

This is different from the Foxhound Monitor process which connects to the target database via ODBC and keeps that connection open while it collects multiple samples.

Note that the Foxhound ping process does not use the dbping.exe utility that ships with SQL Anywhere, nor does it use the ODBC interface that is used to gather sample data.

Also note that the separate ping process "uses up" another SQL Anywhere connection number each time it runs, which is once approximately every 10 seconds for each target database.

The new ping process can be used in three ways:

  1. As an addition to the Foxhound Monitor sampling process, the ping process tests the target database's ability to accept new connections as well as providing data for a third measure of response time: ping response time.

    See Monitor Options - Include Ping.

    See also Alert #35 Separate ping failed.

  2. As an alternative to Foxhound's sampling process, ping-only sampling may be used to check for Alert #1 Database unavailable without storing a lot of data in the Foxhound database.

    See Monitor Options - Ping-Only Sampling.

  3. As an alternative to on/off Sample Schedule settings, ping-only sampling may be specified at various times of the day.

    For example, ping-only sampling might be scheduled during the overnight hours

    • when a large connection pool is mostly idle, or

    • when a heavy load is expected and nobody much cares about performance.

    See Monitor Options - Sample Schedule 'P' characters.

Ping time is calculated by Foxhound; it is not based on any builtin SQL Anywhere properties.


Foxhound 4 » 3. The Monitor Database Page » 3.4 Most Recent Sample 
Throughput... Req, Commits, Bytes
Throughput, also known as bandwidth, is a measure of how much work the database has performed:

Throughput... Req is the rate at which the server has started processing a new request or resumed processing an existing request during the preceding interval.

Performance Tip: Large Throughput... Req values may indicate that heavy client load on the database is a performance bottleneck. Small values may indicate that some other performance bottleneck is preventing the database from processing client requests.

Note that "request" is an atomic internal unit of work processed by the server for a connection, not a client-server communication request from a client application to the SQL Anywhere server.

The latter is not displayed by Foxhound; however, it is recorded by Foxhound in the sample_connection.RequestsReceived column for adhoc queries of connection-level data.

Throughput... Req is based on the server-level Req property

(note that this is different from the connection-level Throughput... Req column which is based on the connection-level ReqCountActive property)

Throughput... Commits is the approximate rate at which commit requests have been executed by all connections in the previous interval.

Performance Tip: Large Throughput... Commits values may indicate that heavy client load on the database is a performance bottleneck. Small values may indicate that some other performance bottleneck is preventing the database from processing client requests.

This number is approximate because a connection may issue a commit and disconnect between two Foxhound samples, and that commit won't be included in this total.

The total since the server started is reset to zero and accumulation starts over again when sampling is stopped and restarted. "Commits" is roughly the same as "transaction count" unless client connections issue a lot of redundant commits.

Throughput... Commits is based on the sum of the connection-level Commit property.

Foxhound does gather the database-level Commit property for target databases running on SQL Anywhere 12 and later, and the value is stored in the sample_detail."Commit" column for adhoc queries, but it is not the value displayed by Foxhound on the Monitor and other pages.

Historically speaking, the value that Foxhound does display (the sum of the connection-level Commit property) is known to be more reliable than the database-level Commit property. However, it is possible that Foxhound may not count commits performed by short-lived connections that aren't captured at all.

This and other values displayed by Foxhound are intended for performance analysis purposes, not accounting or other purposes that require absolute accuracy.

Throughput... Bytes is the rate at which data has been received by and sent by the server across the client server interface in the previous interval.

Performance Tip: Large Throughput... Bytes values may indicate that heavy client load on the database is a performance bottleneck. Small values may indicate that some other performance bottleneck is preventing the database from processing client requests.

Throughput... Bytes is displayed for target databases running on SQL Anywhere versions 7 and later. It is based on the server-level BytesReceived and BytesSent properties for target databases running on SQL Anywhere versions 7 through 12, and on the database-level BytesReceived and BytesSent properties for versions 16 and later.


Foxhound 4 » 3. The Monitor Database Page » 3.4 Most Recent Sample 
Conns / Parent, Child Conns
The Conns column shows how many connections existed on a target database running on SQL Anywhere 11 or earlier, with Foxhound itself counting as 1 connection.
- or -

The Parent, Child Conns columns show how many primary (parent) and internal (child) connections existed on a target databases running on SQL Anywhere 12 or later, with Foxhound itself counting as 1 parent connection.

Performance Tip: A large Conns or Parent Conns value may indicate that heavy client load on the database is a performance bottleneck.

See also Alert #26 Connections.

Performance Tip: A large Child Conns value (up to the number of processors available) may indicate that heavy use of intra-query parallelism is a performance bottleneck.

With intra-query parallelism, multiple processors (child connections) can do work for one client connection (the parent).

A small number of individual client connections (e.g., one) may be responsible for heavy CPU usage on multiple child connections, thus preventing other client connections from getting their work done. If you suspect this is happening, try turning down the level of intra-query parallelism (for example, SET OPTION PUBLIC.MAX_QUERY_TASKS = '4' on an eight-processor computer) or turning it off altogether (SET OPTION PUBLIC.MAX_QUERY_TASKS = '1').

The parent connection count is based on the database-level ConnCount property, and the child connection count is calculated by Foxhound as the number of connections with non-zero connection-level ParentConnection property values.

Performance Tip: The sum of the Parent and Child Conns columns should match the total number of connections shown in the connections detail section at the bottom of the page, but it may differ for the following reasons:


Foxhound 4 » 3. The Monitor Database Page » 3.4 Most Recent Sample 
Executing, Idle, Waiting Conns
The Executing, Idle, Waiting Conns columns show how many connections were executing, idle or waiting, where "waiting" includes blocked connections.

Performance Tip: A large Waiting Conns value may indicate a performance bottleneck; have a look at the connection-level Current Req Status column to find the affected connections.

The database-level Executing, Idle, Waiting Conns columns are closely related to the connection-level Current Req Status value:

       Foxhound              Foxhound
    Database-Level       Connection-Level                                                     SQL Anywhere 
Executing Idle Waiting  Current Req Status           SQL Anywhere Description                 ReqStatus
----------------------  ---------------------------  ---------------------------------------  -----------------
   Yes      -     -     Executing                    The connection is executing a request.   Executing     

    -      Yes          Idle                         The connection is not currently          Idle              
                                                        processing a request.

    -       -    Yes    Waiting for thread           The connection has work to do and        Unscheduled         
                                                        is waiting for a worker thread.

    -       -    Yes    Waiting for I/O              The connection is waiting for an I/O.    BlockedIO     
      
    -       -    Yes    Waiting for shared resource  The connection is waiting for access to  BlockedContention    
                                                     shared database server data structures.

    -       -    Yes    Blocked by lock              The connection is blocked waiting        BlockedLock
                                                     for a locked row.         

    -       -    Yes    Blocked by mutex             The connection is blocked waiting        BlockedLock (1) 
                                                     for a mutex.         

    -       -    Yes    Blocked by semaphore         The connection is blocked waiting        Executing (2)         
                                                     for a semaphore.

    Note 1: Foxhound ignores the SQL Anywhere connection-level ReqStatus value 'BlockedLock' for a connection 
            blocked by a mutex on a target database running on SQL Anywhere 17.

    Note 2: Foxhound ignores the SQL Anywhere connection-level ReqStatus value 'Executing' for a connection 
            blocked by a semaphore on a target database running on SQL Anywhere 17.

Here's an analogy that doesn't prove anything but might help understanding:

Performance Tip: The sum of the Executing, Idle, Waiting Conns columns should match the sum of the Parent and Child Conns columns, but it may differ for the following reasons:

The Executing, Idle, Waiting Conns columns are displayed for target databases running on SQL Anywhere 9 and later.


Foxhound 4 » 3. The Monitor Database Page » 3.4 Most Recent Sample 
Active Req, Max Req, Unsch Req
Active Req is the number of server workers that are currently handling client-side requests.
Performance Tip: Large Active Req values may indicate that heavy client load on the database is a performance bottleneck.

Performance Tip: Small Active Req values may indicate that some other performance bottleneck is preventing the database from processing client requests.

Note that "request" is an atomic internal unit of work processed by the server for a connection, not a client-server communication request from a client application to the SQL Anywhere server.

The latter is not displayed by Foxhound; however, it is recorded by Foxhound in the sample_connection.RequestsReceived column for adhoc queries of connection-level data.

Active Req is based on the server-level ActiveReq property.

Max Req is the server multiprogramming level, or the maximum number of requests that can be processed at one time (the -gn option).

Performance Tip: A Max Req value that is too small may cause the Unsch Req value to increase, in turn causing a bottleneck that increases response time and/or decreases throughput.

Performance Tip: A Max Req value that varies up and down may indicate the server is unable to correctly determine the best value.

If the computer is dedicated to running this SQL Anywhere server and no other process of importance, consider disabling the dynamic tuning of the multiprogramming level by specifying the -gna 0 and -gn options to set a fixed value. With a dedicated computer there may be no need for SQL Anywhere to perform extra work changing the multiprogramming level up and down.

Max Req is displayed for target databases running on SQL Anywhere 9 and later, and is based on the server-level Threads property for SQL Anywhere 9 and on the server-level MultiProgrammingLevel property for SQL Anywhere 10 and later.

Unsch Req (formerly called Waiting Req) shows the number of requests that were waiting to be processed.

Performance Tip: Large Unsch Req values may indicate that some performance bottleneck is preventing the database from processing its workload.
The bottleneck may simply be a Max Req value that is too low (solution: increase the server -gn option), but the problem may be harder than that; for example, if the application design results in excessive blocking and/or too many long-running requests.

See also Alert #14 Unscheduled requests.

Unsch Req is based on the server-level UnschReq property.


Foxhound 4 » 3. The Monitor Database Page » 3.4 Most Recent Sample 
Locks Held, Conns Blocked, Waiting Time
Locks Held is the total number of locks held by all connections.
Performance Tip: Large numbers of Locks Held are not a problem in themselves; SQL Anywhere is perfectly capable of handling millions of locks being held at one time.
When locks become a problem is when they are held too long and cause other connections to be blocked (prevented) from doing work.

For example, when Locks Held grows large during a period of high activity (high CPU, disk), and then *remains* high for a period of low activity, that may indicate an application flaw where a COMMIT is not issued as soon as it should be.

See also Alert #25 Locks.

The Locks Held value does not include schema locks. For example, if a SELECT statement holds a schema lock that is blocking another connection from executing an ALTER TABLE statement, Locks Held may be empty even though Conns Blocked is 1.

Locks Held is displayed for target databases running on SQL Anywhere 10 and later, and is based on the database-level LockCount property.

Conns Blocked is the number of connections that are blocked.

Performance Tip: Large numbers of blocked connections may indicate a serious performance bottleneck caused by locks being held too long.
The cause may be an application that breaks this fundamental rule of transaction design:
"Never yield control of the mouse or keyboard to the end user while database locks are being held; always do a COMMIT first."

When that rule is broken a long-running transaction is often the result, with those locks preventing other users from getting their work done while the first user decides what to do (or takes a lunch break).

See also Alert #23 Blocked connections and Alert #24 Conn blocking others.

Conns Blocked is based on the connection-level BlockedOn property for target databases running on SQL Anywhere versions 5.5 through 16, and on the connection-level BlockedOn, LockObjectType and LockObjectOID properties for version 17.

Note that Foxhound calculates the database-level Conns Blocked value by summarizing data provided by SQL Anywhere at the connection level.

Waiting Time is the total time all current connections were blocked or forced to wait during the previous interval.

Performance Tip: Long waiting times may indicate a serious performance bottleneck caused a lack of resources.
The Waiting Time value is not cumulative. A obscenely large value (such as a Waiting Time of 4h in an Interval of only 13s) is possible when, for example, 1000 connections are all trying to get work done but SQL Anywhere is only able to execute a few requests at a time.

During a period of long Waiting Time values a sudden spike (for example, 3h to 6h) may occur when SQL Anywhere performs a checkpoint.

Waiting Time is displayed for target databases running on SQL Anywhere 9 and later, and is based on the sum of the connection-level ReqTimeBlockContention, ReqTimeBlockIO, ReqTimeBlockLock and ReqTimeUnscheduled properties.


Foxhound 4 » 3. The Monitor Database Page » 3.4 Most Recent Sample 
CPU
The CPU column shows two values: the percent used during the preceding interval (nn%) and the number of processors used (of n).
The CPU time values are for the target SQL Anywhere server as a whole, not an individual target database when the server is running more than one database.

The percentages are adjusted for the number of CPUs being used by SQL Anywhere.

For example, if four processors are used, and SQL Anywhere is using 100% of one processor and 0% of the other three, Foxhound will show the CPU time as 25% of 4.

Performance Tip: CPU time is most important when the value is unexpected.

Performance Tip: If you suspect that too much CPU time is being used by SQL code inside stored procedures, triggers, events and/or web services, SQL Anywhere's own "procedure profiler" is the very best way to find those bottlenecks.

See also Alert #4 CPU time and Alert #27 Connection CPU.

The CPU time and CPU count values are displayed for target databases running on SQL Anywhere version 7 and later, and are based on the server-level NumLogicalProcessorsUsed, NumProcessorsAvail, NumProcessorsMax and ProcessCPU properties.


Foxhound 4 » 3. The Monitor Database Page » 3.4 Most Recent Sample 
Temp Space, Rollback Log, Uncommitted
The Temp Space column shows the total amount of temporary file space used by all the connections.
Temporary pages are used for many purposes, most often to hold intermediate results during query processing. Even if there is no temporary file, as with an in-memory no write database, temporary space is allocated and used by the engine.

Performance Tip: Large amounts of Temp Space may indicate that runaway queries are a performance bottleneck.

To find which connections are using the most temporary file space, click on the Temp Space column heading in the connection section of Foxhound Monitor or History page. That will sort the connections in decreasing order by Temp Space.

To limit the amount of temporary file space any individual connection can use on a target database running on SQL Anywhere version 10 or later, use the MAX_TEMP_SPACE option; e.g., SET OPTION PUBLIC.MAX_TEMP_SPACE = '1G';

See also Alert #21 Temp file usage and Alert #22 Conn temp file usage.

Performance Tip: The term "temporary file" is misleading and it should be renamed "temporary space" because the data may or may not reside in the actual temporary file (which may not exist at all).

Temp Space is displayed for target databases running on SQL Anywhere version 8 and later and is based on the database-level PageSize property and the sum of the connection-level TempFilePages property.

Rollback Log shows how much space in the rollback log is currently used by all the connections.

Performance Tip: A large Rollback Log value at the server level may indicate that long-running transactions are a performance bottleneck.
Look for confirmation of this in the server-level Conns Blocked column and the connection-level Transaction Time column.

See also Alert #32 Rollback log usage.

Performance Tip: The final checkpoint stage of a normal server shutdown may also take a long time while the changes recorded in a large rollback log are being reversed.

RollBack Log is based on the database-level PageSize property and the sum of the connection-level RollbackLogPages property.

Uncommitted shows how many operations have been performed by all the connections but not yet committed.

Performance Tip: A large number of Uncommitted operations at the server level may indicate that long-running transactions are a performance bottleneck.
Look for confirmation of this in the server-level Conns Blocked column and the connection-level Transaction Time column.

See also Alert #33 Uncommitted operations and Alert #34 Long uncommitted.

Performance Tip: The count of Uncommitted operations includes (and may be exactly equal to) the number of uncommitted row-level inserts, updates and deletes.

The count of Uncommitted operations may be larger than the number of INSERT, UPDATE and DELETE statements because one statement can affect many rows.

If a single row is inserted, then updated twice and finally deleted, for example, that counts as four Uncommitted operations.

If a single row matches the WHERE clause of an UPDATE statement but all of the new column values in the SET clause are the same as the current values in the row, that row is not updated and the operation is not counted as an Uncommitted operation.

A table-level schema lock obtained by a SELECT statement is not counted as an Uncommitted operation even though the lock is not cleared until a subsequent commit or rollback (and may thus be regarded as "uncommitted").

Uncommitted is based on the sum of the connection-level UncommitOp property.


Foxhound 4 » 3. The Monitor Database Page » 3.4 Most Recent Sample 
Cache Panics, Low Memory, Satisfaction
Cache Panics is the number of times the target server failed to find a cache page to allocate in the previous interval.
See also Alert #29 Cache panics.

Cache Panics is displayed for target databases running on SQL Anywhere version 9 and later, and is based on the server-level CachePanics property.

Low Memory is the number of times the target server had to change a query execution plan because cache memory ran low in the previous interval.

Low Memory is displayed for target databases running on SQL Anywhere version 8 or later and is based on the database-level QueryLowMemoryStrategy property.

Cache Satisfaction is the percentage of times a database page lookup was satisfied by the cache in the previous interval.

Performance Tip: These conditions may indicate that insufficient memory in the database cache is a performance bottleneck:

Performance Tip: If the computer is dedicated to running this SQL Anywhere server and no other process of importance, consider disabling the automatic cache size tuning process by specifying the -ca 0 and -c options to set a fixed cache size. With a dedicated computer there may be no need for SQL Anywhere to perform extra work changing the cache size up and down.

Performance Tip: A long-running UNLOAD TABLE statement may result in extreme Cache Satisfaction values like 37.74%.

Cache Satisfaction is based on the server-level CacheHits and CacheRead properties for target databases running on SQL Anywhere versions 5 and 6, and on the database-level CacheHits and CacheRead properties for versions 7 and later.


Foxhound 4 » 3. The Monitor Database Page » 3.4 Most Recent Sample 
Checkpoints, Checkpoint Urgency, Recovery Urgency
Checkpoints is the number of CHECKPOINT operations that have been executed by the server in the previous interval.
Performance Tip: Checkpoint operations can be expensive. More than one checkpoint every once in a while may indicate that undesirable behavior is causing a performance bottleneck.
Generally speaking, explicit CHECKPOINT statements are not required in application programs because the server does a good job of scheduling checkpoints to minimize their impact on performance. An explicit CHECKPOINT should never be used without careful consideration, especially in a busy multi-user environment.

Checkpoints are different from commits; a commit ensures that the transaction log file is up to date whereas a checkpoint ensures that the database file is up to date. As long as commits are performed frequently, performance can be greatly improved by delaying checkpoint operations... which is what SQL Anywhere does by default.

Performance Tip: Think twice before running a database without a transaction log. Even if you don't need the log for recovery purposes, SQL Anywhere will perform a checkpoint after every commit if there's no transaction log... and that can be very bad for performance.

Checkpoints is based on the server-level Chkpt property for target databases running on SQL Anywhere versions 5 and 6, and on the database-level Chkpt property for versions 7 and later.

Checkpoint Urgency is the percentage of the SET OPTION PUBLIC.CHECKPOINT_TIME value that has elapsed since the previous checkpoint.

See also Alert #17 Checkpoint urgency.

Checkpoint Urgency is displayed for target databases running on SQL Anywhere version 7 and later, and is based on the database-level CheckpointUrgency property.

Recovery Urgency is the estimated time required to recover the database when restarting after an abnormal stoppage, expressed as a percentage of the SET OPTION PUBLIC.RECOVERY_TIME value.

Checkpoint Urgency and Recovery Urgency are used by the target server to help decide when to take a checkpoint. They both increase monotonically until a checkpoint is taken, then drop to zero.

The Recovery Urgency may exceed 100% because SQL Anywhere enforces a lower boundary on the interval between successive checkpoints. This lower bound is calculated using the checkpoint_time and recovery_time options, and the default is 2 minutes. If Recovery Urgency increases rapidly immediately after one checkpoint is taken, it may continue far beyond 100% before the next checkpoint is allowed.

See also Alert #18 Recovery urgency.

Recovery Urgency is displayed for target databases running on SQL Anywhere version 7 or later, and is based on the database-level RecoveryUrgency property.

Performance Tip: Before changing how often SQL Anywhere takes checkpoints, think twice! SQL Anywhere almost always does an excellent job of picking the right time to perform a checkpoint without your help.


Foxhound 4 » 3. The Monitor Database Page » 3.4 Most Recent Sample 
Disk/Cache: Internal Index, Leaf, Table
Disk/Cache: Internal Index is the percentage ratio between the number of index internal-node pages that have been read from disk and from the cache in the previous interval.
Disk/Cache: Internal Index is displayed for target databases running on SQL Anywhere version 7 and later, and is based on the database-level DiskReadIndInt and CacheReadIndInt properties.

Disk/Cache: Leaf is the percentage ratio between the number of index leaf pages that have been read from disk and from the cache in the previous interval.

Disk/Cache: Leaf is displayed for target databases running on SQL Anywhere version 7 and later, and is based on the database-level DiskReadIndLeaf and CacheReadIndLeaf properties.

Disk/Cache: Table is the percentage ratio between the number of table pages that have been read from disk and from the cache in the previous interval.

Disk/Cache: Table is displayed for target databases running on SQL Anywhere version 7 and later, and is based on the database-level DiskReadTable and CacheReadTable properties.

The CacheReadTable counter is incremented every time SQL Anywhere tries to read a table page.

The DiskReadTable counter is incremented every time SQL Anywhere can't find the table in the cache and has to read it from disk.

Performance Tip: These conditions may indicate that insufficient memory in the database cache is a performance bottleneck.

Performance Tip: If the computer is dedicated to running this SQL Anywhere server and no other process of importance, consider disabling the automatic cache size tuning process by specifying the -ca 0 and -c options to set a fixed cache size.

With a dedicated computer there may be no need for SQL Anywhere to perform extra work changing the cache size up and down.

Performance Tip: Disk/Cache ratios that are consistently large may indicate that cache thrashing caused by a large database page size is a performance bottleneck.

A smaller database page size may allow important pages to remain in the cache longer rather than being swapped out to disk to make room for different (giant) pages.

Performance Tip: A long-running UNLOAD TABLE statement may result in extreme Disk/Cache: Internal Index, Leaf, Table values like "- / - / 99%".


Foxhound 4 » 3. The Monitor Database Page » 3.4 Most Recent Sample 
Incomplete Reads, Writes
Incomplete Reads is the current number of file reads that have been started but not yet completed.
Performance Tip: Consistently large Incomplete Reads values (greater than zero) may indicate that there is a performance bottleneck caused by the inability of the disk system to keep up with database activity.
See also Alert #15 Incomplete I/O.

Incomplete Reads is displayed for target databases running on SQL Anywhere version 17, and is based on the database-level CurrRead property.

Incomplete Writes is the current number of file writes that have been started but not yet completed.

Performance Tip: Consistently large Incomplete Writes values (greater than zero) may indicate that there is a performance bottleneck caused by the inability of the disk system to keep up with database activity.
See also Alert #15 Incomplete I/O.

Incomplete Writes is displayed for target databases running on SQL Anywhere version 17, and is based on the database-level CurrWrite property.


Foxhound 4 » 3. The Monitor Database Page » 3.4 Most Recent Sample 
Disk Reads, Disk Writes, Log Writes
Disk Reads is the number of pages that have been read from disk in the previous interval.
Disk Reads is based on the server-level DiskRead property for target databases running on SQL Anywhere versions 5 and 6, and on the database-level DiskRead property for versions 7 and later.

Disk Writes is the number of modified pages that have been written to disk in the previous interval.

Disk Writes is based on the server-level DiskWrite property for target databases running on SQL Anywhere versions 5 and 6, and on the database-level DiskWrite property for versions 7 and later.

Log Writes column shows the number of pages that have been written to the transaction log in the previous interval.

Log Writes is based on the server-level LogWrite property for target databases running on SQL Anywhere versions 5 and 6, and on the database-level LogWrite property for versions 7 and later.

Performance Tip: Large Disk Reads, Disk Writes, Log Writes values may indicate that heavy disk I/O is a performance bottleneck.

See also Alert #16 I/O operations.

Performance Tip: Disk Reads and Disk Writes count page-level input and output operations on the SYSTEM, temporary and secondary dbspace files, and Log Writes counts pages written to the transaction log file. Other files are excluded; e.g., non-dbspace files used by LOAD and UNLOAD statements and by xp_read_file() and xp_write_file() procedure calls.


Foxhound 4 » 3. The Monitor Database Page » 3.4 Most Recent Sample 
Index Adds, Lookups, Satisfaction
Index Adds is the number of times an entry has been added to an index in the previous interval.
Performance Tip: A large Index Adds value may indicate that a large number of row inserts is a performance bottleneck ...or a large number of row updates that are changing index columns.

Index Adds is based on the server-level IndAdd property for target databases running on SQL Anywhere versions 5.5 and 6, and on the database-level IndAdd property for target databases running on SQL Anywhere versions 7 and later.

Index Lookups is the number of times an entry has been looked up in an index in the previous interval.

Performance Tip: A large Index Lookups value may indicate that heavy index usage is a performance bottleneck ...or just the opposite; heavy index usage is often better than the alternative (frequent retrieval of data pages).

Index Lookups is based on the server-level IndLookup property for target databases running on SQL Anywhere versions 5.5 and 6, and on the database-level IndLookup property for target databases running on SQL Anywhere versions 7 and later.

Index Satisfaction is the percentage of times that an index lookup was satisfied by the index without having to retrieve more information from the table data in the previous interval.

Performance Tip: Small Index Satisfaction values (less than 100%) may indicate that low index selectivity is causing a performance bottleneck.
Index selectivity is the ability to locate individual entries within index pages without having to read table pages.

When index selectivity is low it often means

  • SQL Anywhere has chosen the wrong index for a particular query predicate (a rare event but possible),

  • the index design is inadequate for the task of satisfying that query predicate (more likely), and/or

  • the index is fragmented (also possible; see the sa_index_levels() procedure).

To increase Index Satisfaction at the database level it may be necessary to find the individual queries that are responsible; try clicking on the connection section column titles Full Index Comps or Index Satisfaction to sort the connections in descending order.

When you find the responsible queries, use SQL Anywhere's Graphical Plan With Statistics feature to examine index choice and usage.

Note: Index Satisfaction is different from Cache Satisfaction; one compares index and table usage, the other compares memory and disk.

Index Satisfaction is based on the server-level IndLookup and FullCompare properties for target databases running on SQL Anywhere versions 5.5 and 6, and on the database-level IndLookup and FullCompare properties for target databases running on SQL Anywhere versions 7 and later.


Foxhound 4 » 3. The Monitor Database Page » 3.4 Most Recent Sample 
Full Index Comps
Full Index Comps shows how many times additional information had to be obtained from the table data in order to satisfy an index lookup in the previous interval.

Performance Tip: Large values of Full Index Comps may indicate that low index selectivity is causing a performance bottleneck.

Index selectivity is the ability to locate individual entries within index pages without having to read table pages.

When index selectivity is low it often means

To reduce the number of Full Index Comps at the database level it may be necessary to find the individual queries that are responsible; try clicking on the connection section column titles Full Index Comps or Index Satisfaction to sort the connections in descending order.

When you find the responsible queries, use SQL Anywhere's Graphical Plan With Statistics feature to examine index choice and usage.

Full Index Comps is based on the server-level FullCompare property for target databases running on SQL Anywhere versions 5.5 and 6, and on the database-level FullCompare property for target databases running on SQL Anywhere versions 7 and later.


Foxhound 4 » 3. The Monitor Database Page 
3.5 Peaks
Peaks

Peaks since

Response... Heartbeat, Sample, Ping Peaks

Throughput... Req, Commits, Bytes Peaks

Conns / Parent, Child Conns Peaks

Executing, Idle, Waiting Conns Peaks

Active Req, Max Req, Unsch Req Peaks

Locks Held, Conns Blocked, Waiting Time Peaks

CPU Peaks

Temp Space, Rollback Log, Uncommitted Peaks

Cache Panics, Low Memory, Satisfaction Peaks

Checkpoints, Checkpoint Urgency, Recovery Urgency Peaks

Disk/Cache: Internal Index, Leaf, Table Peaks

Incomplete Reads, Writes Peaks

Disk Reads, Disk Writes, Log Writes Peaks

Index Adds, Lookups, Satisfaction Peaks

Full Index Comps Peak


Foxhound 4 » 3. The Monitor Database Page » 3.5 Peaks 

The Peaks section consists of a single line of peak values, where "peak" means "largest" for most values, and "smallest" for the Cache Satisfaction and Index Satisfaction percentages.

You can click on an individual peak value to open the History page in a separate browser window or tab, scrolled to the sample holding that peak value.

Note: The Peaks section will disappear for a short time when you press the button. The recording of peak values will automatically restart with the next successful sample and the Peaks section will reappear.

Performance Tip: Think twice before pressing the button. That's because Foxhound doesn't let you save or restore old peak values once they have been reset.

One reason to reset the peaks is when most of the peaks are so old they're no longer relevant; for example, the peaks predate major improvements made to database performance or they point to samples that have been purged,

If a peak isn't shown as a hyperlink, the corresponding sample data may have been deleted by the background purge process. See the Foxhound Options page for more information on purging sample data.

Some peak values are displayed as rates (e.g., bytes per second nn/s) rather than counts or amounts like nnk.

The reason for this is that the interval between samples can vary, and a true comparison of "larger versus smaller" should take that into account.

For example, a server that processed Bytes of 5M in an 8 second interval was actually busier than one that processed 6M in a 12 second interval (as far as Bytes is concerned).

Peak values are used to determine almost all of the color highlighting in the other sections (Most Recent Sample and Recent Samples) above and below the Peaks section, as follows:


Foxhound 4 » 3. The Monitor Database Page » 3.5 Peaks 
Peaks since
The Peaks since link identifies the earliest sample that was used to compute peak values.
This will be the first sample ever recorded for this database, or the first sample recorded after the most recent pressing of the button.

You can click on this link to open the History page in a separate browser window or tab, scrolled to this sample.

If the Peaks since timestamp isn't shown as a hyperlink, the corresponding sample data may have been deleted by the background purge process. See the Foxhound Options page for more information on purging sample data.


Foxhound 4 » 3. The Monitor Database Page » 3.5 Peaks 
Response... Heartbeat, Sample, Ping Peaks
Response time, also known as latency or access time, is a measure of how long it takes the database to respond to a single request:

The Response... Heartbeat time peak shows the longest time it took for Foxhound to execute the SELECT * FROM DUMMY heartbeat or "canarian" query.

Performance Tip: Heartbeat time should be very small. Repeated values larger than 1s may indicate a performance bottleneck, and sudden increases in value may indicate a period of non-responsiveness.
Note that there's a difference between precision and accuracy; for example, two successive Heartbeat measurements like 25ms and 50ms may be very precise but they may not accurately represent an immediate 100% slowdown in performance.

On the other hand, a long period of Heartbeat values averaging 25ms, followed by a long period of 50ms numbers, may indeed accurately reflect a significant change in performance.

See also Alert #2 Long heartbeat.

Heartbeat time is calculated by Foxhound; it is not based on any builtin SQL Anywhere properties.

The Response... Sample time peak shows the longest time it took for Foxhound to gather all the performance data for this sample.

Sample time should always be longer than Heartbeat time, and it will grow longer with an increasing number of connections because of the extra work involved to analyze each sample.

The Sample time is calculated after Heartbeat time and the two values do not overlap. It is possible for the Heartbeat time to be much longer than the Sample Time (e.g., 10m versus 100ms) when the target database becomes unresponsive but eventually responds; the long Heartbeat time reflects the unresponsiveness whereas the subsequent short Sample Time measures the return to normal.

Performance Tip: A long Sample Time may indicate a performance problem with Foxhound rather than the target database; e.g.:

To see where the performance problem lies, repeatedly run the following ISQL script against your target database; if this script runs quickly but Foxhound reports a large Sample Time, the problem lies with Foxhound:
SELECT * INTO #temp1 FROM rroad_engine_properties();
SELECT * INTO #temp2 FROM rroad_database_properties(1);
SELECT * INTO #temp3 FROM rroad_connection_properties();
DROP TABLE #temp1;
DROP TABLE #temp2;
DROP TABLE #temp3;

See also Alert #3 Long sample time.

Sample time is calculated by Foxhound; it is not based on any builtin SQL Anywhere properties.

The Response... Ping time peak column shows the longest time it took for Foxhound to connect and disconnect from the target database.

Performance Tip: Long Ping times may indicate that a performance bottleneck is preventing the target database from accepting new connections on a timely basis.
Ping times for local "shared memory" connections may be similar to or even smaller than Sample times for the same database, but they will usually be larger than Heartbeat times.

Ping times for network connections may be much longer than Ping times for local connections.

Foxhound uses a custom "ping" process to test separate connections to the target database.

Each time the ping process runs it opens a new connection to the target database via the embedded SQL interface, issues a SELECT @@SPID command and then immediately disconnects.

This is different from the Foxhound Monitor process which connects to the target database via ODBC and keeps that connection open while it collects multiple samples.

Note that the Foxhound ping process does not use the dbping.exe utility that ships with SQL Anywhere, nor does it use the ODBC interface that is used to gather sample data.

Also note that the separate ping process "uses up" another SQL Anywhere connection number each time it runs, which is once approximately every 10 seconds for each target database.

The new ping process can be used in three ways:

  1. As an addition to the Foxhound Monitor sampling process, the ping process tests the target database's ability to accept new connections as well as providing data for a third measure of response time: ping response time.

    See Monitor Options - Include Ping.

    See also Alert #35 Separate ping failed.

  2. As an alternative to Foxhound's sampling process, ping-only sampling may be used to check for Alert #1 Database unavailable without storing a lot of data in the Foxhound database.

    See Monitor Options - Ping-Only Sampling.

  3. As an alternative to on/off Sample Schedule settings, ping-only sampling may be specified at various times of the day.

    For example, ping-only sampling might be scheduled during the overnight hours

    • when a large connection pool is mostly idle, or

    • when a heavy load is expected and nobody much cares about performance.

    See Monitor Options - Sample Schedule 'P' characters.

Ping time is calculated by Foxhound; it is not based on any builtin SQL Anywhere properties.


Foxhound 4 » 3. The Monitor Database Page » 3.5 Peaks 
Throughput... Req, Commits, Bytes Peaks
Throughput, also known as bandwidth, is a measure of how much work the database has performed:

The Throughput... Req peak is highest rate at which the server started processing a new request or resumed processing an existing request in a single interval.

Performance Tip: Large Throughput... Req values may indicate that heavy client load on the database is a performance bottleneck. Small values may indicate that some other performance bottleneck is preventing the database from processing client requests.

Note that "request" is an atomic internal unit of work processed by the server for a connection, not a client-server communication request from a client application to the SQL Anywhere server.

The latter is not displayed by Foxhound; however, it is recorded by Foxhound in the sample_connection.RequestsReceived column for adhoc queries of connection-level data.

Throughput... Req is based on the server-level Req property

(note that this is different from the connection-level Throughput... Req column which is based on the connection-level ReqCountActive property)

The Throughput... Commits peak is the highest rate at which COMMIT operations were executed in a single interval.

Performance Tip: Large Throughput... Commits values may indicate that heavy client load on the database is a performance bottleneck. Small values may indicate that some other performance bottleneck is preventing the database from processing client requests.

This number is approximate because a connection may issue a commit and disconnect between two Foxhound samples, and that commit won't be included in this total.

The total since the server started is reset to zero and accumulation starts over again when sampling is stopped and restarted. "Commits" is roughly the same as "transaction count" unless client connections issue a lot of redundant commits.

Throughput... Commits is based on the sum of the connection-level Commit property.

Foxhound does gather the database-level Commit property for target databases running on SQL Anywhere 12 and later, and the value is stored in the sample_detail."Commit" column for adhoc queries, but it is not the value displayed by Foxhound on the Monitor and other pages.

Historically speaking, the value that Foxhound does display (the sum of the connection-level Commit property) is known to be more reliable than the database-level Commit property. However, it is possible that Foxhound may not count commits performed by short-lived connections that aren't captured at all.

This and other values displayed by Foxhound are intended for performance analysis purposes, not accounting or other purposes that require absolute accuracy.

The Throughput... Bytes peak is the highest rate at which data was sent and received for client server connections in a single interval.

Performance Tip: Large Throughput... Bytes values may indicate that heavy client load on the database is a performance bottleneck. Small values may indicate that some other performance bottleneck is preventing the database from processing client requests.

Throughput... Bytes is displayed for target databases running on SQL Anywhere versions 7 and later. It is based on the server-level BytesReceived and BytesSent properties for target databases running on SQL Anywhere versions 7 through 12, and on the database-level BytesReceived and BytesSent properties for versions 16 and later.


Foxhound 4 » 3. The Monitor Database Page » 3.5 Peaks 
Conns / Parent, Child Conns Peaks
The Conns peak shows the largest number of connections that existed on a target database running on SQL Anywhere 11 or earlier, with Foxhound itself counting as 1 connection.

The Parent, Child Conns peaks show the largest numbers of primary (parent) and internal (child) connections on a target database running on SQL Anywhere 12 or later, with Foxhound itself counting as 1 parent connection.

Performance Tip: A large Conns or Parent Conns value may indicate that heavy client load on the database is a performance bottleneck.

See also Alert #26 Connections.

Performance Tip: A large Child Conns value (up to the number of processors available) may indicate that heavy use of intra-query parallelism is a performance bottleneck.

With intra-query parallelism, multiple processors (child connections) can do work for one client connection (the parent).

A small number of individual client connections (e.g., one) may be responsible for heavy CPU usage on multiple child connections, thus preventing other client connections from getting their work done. If you suspect this is happening, try turning down the level of intra-query parallelism (for example, SET OPTION PUBLIC.MAX_QUERY_TASKS = '4' on an eight-processor computer) or turning it off altogether (SET OPTION PUBLIC.MAX_QUERY_TASKS = '1').

The parent connection count is based on the database-level ConnCount property, and the child connection count is calculated by Foxhound as the number of connections with non-zero connection-level ParentConnection property values.

Performance Tip: The sum of the Parent and Child Conns columns should match the total number of connections shown in the connections detail section at the bottom of the page, but it may differ for the following reasons:


Foxhound 4 » 3. The Monitor Database Page » 3.5 Peaks 
Executing, Idle, Waiting Conns Peaks
The Executing, Idle, Waiting Conns peaks show the largest numbers of connections that were executing, idle or waiting, where "waiting" includes blocked connections. Performance Tip: A large Waiting Conns value may indicate a performance bottleneck; have a look at the connection-level Current Req Status column to find the affected connections.

The database-level Executing, Idle, Waiting Conns columns are closely related to the connection-level Current Req Status value:

       Foxhound              Foxhound
    Database-Level       Connection-Level                                                     SQL Anywhere 
Executing Idle Waiting  Current Req Status           SQL Anywhere Description                 ReqStatus
----------------------  ---------------------------  ---------------------------------------  -----------------
   Yes      -     -     Executing                    The connection is executing a request.   Executing     

    -      Yes          Idle                         The connection is not currently          Idle              
                                                        processing a request.

    -       -    Yes    Waiting for thread           The connection has work to do and        Unscheduled         
                                                        is waiting for a worker thread.

    -       -    Yes    Waiting for I/O              The connection is waiting for an I/O.    BlockedIO     
      
    -       -    Yes    Waiting for shared resource  The connection is waiting for access to  BlockedContention    
                                                     shared database server data structures.

    -       -    Yes    Blocked by lock              The connection is blocked waiting        BlockedLock
                                                     for a locked row.         

    -       -    Yes    Blocked by mutex             The connection is blocked waiting        BlockedLock (1) 
                                                     for a mutex.         

    -       -    Yes    Blocked by semaphore         The connection is blocked waiting        Executing (2)         
                                                     for a semaphore.

    Note 1: Foxhound ignores the SQL Anywhere connection-level ReqStatus value 'BlockedLock' for a connection 
            blocked by a mutex on a target database running on SQL Anywhere 17.

    Note 2: Foxhound ignores the SQL Anywhere connection-level ReqStatus value 'Executing' for a connection 
            blocked by a semaphore on a target database running on SQL Anywhere 17.

Here's an analogy that doesn't prove anything but might help understanding:

Performance Tip: The sum of the Executing, Idle, Waiting Conns columns should match the sum of the Parent and Child Conns columns, but it may differ for the following reasons:

The Executing, Idle, Waiting Conns columns are displayed for target databases running on SQL Anywhere 9 and later.


Foxhound 4 » 3. The Monitor Database Page » 3.5 Peaks 
Active Req, Max Req, Unsch Req Peaks
The Active Req peak is the largest number of server workers that are currently handling client-side requests.
Performance Tip: Large Active Req values may indicate that heavy client load on the database is a performance bottleneck.

Performance Tip: Small Active Req values may indicate that some other performance bottleneck is preventing the database from processing client requests.

Note that "request" is an atomic internal unit of work processed by the server for a connection, not a client-server communication request from a client application to the SQL Anywhere server.

The latter is not displayed by Foxhound; however, it is recorded by Foxhound in the sample_connection.RequestsReceived column for adhoc queries of connection-level data.

Active Req is based on the server-level ActiveReq property.

The Max Req peak is the maximum number of requests that could be processed at one time (the -gn option).

Performance Tip: A Max Req value that is too small may cause the Unsch Req value to increase, in turn causing a bottleneck that increases response time and/or decreases throughput.

Performance Tip: A Max Req value that varies up and down may indicate the server is unable to correctly determine the best value.

If the computer is dedicated to running this SQL Anywhere server and no other process of importance, consider disabling the dynamic tuning of the multiprogramming level by specifying the -gna 0 and -gn options to set a fixed value. With a dedicated computer there may be no need for SQL Anywhere to perform extra work changing the multiprogramming level up and down.

Max Req is displayed for target databases running on SQL Anywhere 9 and later, and is based on the server-level Threads property for SQL Anywhere 9 and on the server-level MultiProgrammingLevel property for SQL Anywhere 10 and later.

The Unsch Req peak (formerly called Waiting Req) shows the largest number of requests that were waiting to be processed.

Performance Tip: Large Unsch Req values may indicate that some performance bottleneck is preventing the database from processing its workload.
The bottleneck may simply be a Max Req value that is too low (solution: increase the server -gn option), but the problem may be harder than that; for example, if the application design results in excessive blocking and/or too many long-running requests.

See also Alert #14 Unscheduled requests.

Unsch Req is based on the server-level UnschReq property.


Foxhound 4 » 3. The Monitor Database Page » 3.5 Peaks 
Locks Held, Conns Blocked, Waiting Time Peaks
The Locks Held peak is the largest total number of locks held by all connections.

Performance Tip: Large numbers of Locks Held are not a problem in themselves; SQL Anywhere is perfectly capable of handling millions of locks being held at one time.
When locks become a problem is when they are held too long and cause other connections to be blocked (prevented) from doing work.

For example, when Locks Held grows large during a period of high activity (high CPU, disk), and then *remains* high for a period of low activity, that may indicate an application flaw where a COMMIT is not issued as soon as it should be.

See also Alert #25 Locks.

The Locks Held value does not include schema locks. For example, if a SELECT statement holds a schema lock that is blocking another connection from executing an ALTER TABLE statement, Locks Held may be empty even though Conns Blocked is 1.

Locks Held is displayed for target databases running on SQL Anywhere 10 and later, and is based on the database-level LockCount property.

The Conns Blocked peak is the largest number of connections that were blocked. The Conns Blocked column will be empty if connection details are not being recorded; see Foxhound Options - Connection sampling threshold.

Performance Tip: Large numbers of blocked connections may indicate a serious performance bottleneck caused by locks being held too long.
The cause may be an application that breaks this fundamental rule of transaction design:
"Never yield control of the mouse or keyboard to the end user while database locks are being held; always do a COMMIT first."

When that rule is broken a long-running transaction is often the result, with those locks preventing other users from getting their work done while the first user decides what to do (or takes a lunch break).

See also Alert #23 Blocked connections and Alert #24 Conn blocking others.

Conns Blocked is based on the connection-level BlockedOn property for target databases running on SQL Anywhere versions 5.5 through 16, and on the connection-level BlockedOn, LockObjectType and LockObjectOID properties for version 17.

Note that Foxhound calculates the database-level Conns Blocked value by summarizing data provided by SQL Anywhere at the connection level.

The Waiting Time peak is the largest value of the total time all current connections were blocked or forced to wait during the previous interval.

Performance Tip: Long waiting times may indicate a serious performance bottleneck caused a lack of resources.
The Waiting Time value is not cumulative. A obscenely large value (such as a Waiting Time of 4h in an Interval of only 13s) is possible when, for example, 1000 connections are all trying to get work done but SQL Anywhere is only able to execute a few requests at a time.

During a period of long Waiting Time values a sudden spike (for example, 3h to 6h) may occur when SQL Anywhere performs a checkpoint.

Waiting Time is displayed for target databases running on SQL Anywhere 9 and later, and is based on the sum of the connection-level ReqTimeBlockContention, ReqTimeBlockIO, ReqTimeBlockLock and ReqTimeUnscheduled properties.


Foxhound 4 » 3. The Monitor Database Page » 3.5 Peaks 
CPU Peaks
The CPU peak section shows the largest percentage of CPU time used during a single interval (nn%) plus the largest number of processors used (of n).
The CPU time values are for the target SQL Anywhere server as a whole, not an individual target database when the server is running more than one database.

The percentages are adjusted for the number of CPUs being used by SQL Anywhere.

For example, if four processors are used, and SQL Anywhere is using 100% of one processor and 0% of the other three, Foxhound will show the CPU time as 25% of 4.

Performance Tip: CPU time is most important when the value is unexpected.

Performance Tip: If you suspect that too much CPU time is being used by SQL code inside stored procedures, triggers, events and/or web services, SQL Anywhere's own "procedure profiler" is the very best way to find those bottlenecks.

See also Alert #4 CPU time and Alert #27 Connection CPU.

The CPU time and CPU count values are displayed for target databases running on SQL Anywhere version 7 and later, and are based on the server-level NumLogicalProcessorsUsed, NumProcessorsAvail, NumProcessorsMax and ProcessCPU properties.


Foxhound 4 » 3. The Monitor Database Page » 3.5 Peaks 
Temp Space, Rollback Log, Uncommitted Peaks
The Temp Space peak shows the largest amount of temporary space used by all the connections.
Temporary pages are used for many purposes, most often to hold intermediate results during query processing. Even if there is no temporary file, as with an in-memory no write database, temporary space is allocated and used by the engine.

Performance Tip: Large amounts of Temp Space may indicate that runaway queries are a performance bottleneck.

To find which connections are using the most temporary file space, click on the Temp Space column heading in the connection section of Foxhound Monitor or History page. That will sort the connections in decreasing order by Temp Space.

To limit the amount of temporary file space any individual connection can use on a target database running on SQL Anywhere version 10 or later, use the MAX_TEMP_SPACE option; e.g., SET OPTION PUBLIC.MAX_TEMP_SPACE = '1G';

See also Alert #21 Temp file usage and Alert #22 Conn temp file usage.

Performance Tip: The term "temporary file" is misleading and it should be renamed "temporary space" because the data may or may not reside in the actual temporary file (which may not exist at all).

Temp Space is displayed for target databases running on SQL Anywhere version 8 and later and is based on the database-level PageSize property and the sum of the connection-level TempFilePages property.

The Rollback Log peak shows the largest amount of space in the rollback log used by all the connections.

Performance Tip: A large Rollback Log value at the server level may indicate that long-running transactions are a performance bottleneck.
Look for confirmation of this in the server-level Conns Blocked column and the connection-level Transaction Time column.

See also Alert #32 Rollback log usage.

Performance Tip: The final checkpoint stage of a normal server shutdown may also take a long time while the changes recorded in a large rollback log are being reversed.

RollBack Log is based on the database-level PageSize property and the sum of the connection-level RollbackLogPages property.

The Uncommitted peak shows the largest number of operations performed by all the connections but not yet committed.

Performance Tip: A large number of Uncommitted operations at the server level may indicate that long-running transactions are a performance bottleneck.
Look for confirmation of this in the server-level Conns Blocked column and the connection-level Transaction Time column.

See also Alert #33 Uncommitted operations and Alert #34 Long uncommitted.

Performance Tip: The count of Uncommitted operations includes (and may be exactly equal to) the number of uncommitted row-level inserts, updates and deletes.

The count of Uncommitted operations may be larger than the number of INSERT, UPDATE and DELETE statements because one statement can affect many rows.

If a single row is inserted, then updated twice and finally deleted, for example, that counts as four Uncommitted operations.

If a single row matches the WHERE clause of an UPDATE statement but all of the new column values in the SET clause are the same as the current values in the row, that row is not updated and the operation is not counted as an Uncommitted operation.

A table-level schema lock obtained by a SELECT statement is not counted as an Uncommitted operation even though the lock is not cleared until a subsequent commit or rollback (and may thus be regarded as "uncommitted").

Uncommitted is based on the sum of the connection-level UncommitOp property.


Foxhound 4 » 3. The Monitor Database Page » 3.5 Peaks 
Cache Panics, Low Memory, Satisfaction Peaks
Cache Panics is the highest rate at which the target server failed to find a cache page to allocate.
See also Alert #29 Cache panics.

Cache Panics is displayed for target databases running on SQL Anywhere version 9 and later, and is based on the server-level CachePanics property.

Low Memory is the highest rate at which the target server had to change a query execution plan because cache memory ran low.

Low Memory is displayed for target databases running on SQL Anywhere version 8 or later and is based on the database-level QueryLowMemoryStrategy property.

Cache Satisfaction is the lowest percentage of times a database page lookup was satisfied by the cache.

Performance Tip: These conditions may indicate that insufficient memory in the database cache is a performance bottleneck:

Performance Tip: If the computer is dedicated to running this SQL Anywhere server and no other process of importance, consider disabling the automatic cache size tuning process by specifying the -ca 0 and -c options to set a fixed cache size. With a dedicated computer there may be no need for SQL Anywhere to perform extra work changing the cache size up and down.

Performance Tip: A long-running UNLOAD TABLE statement may result in extreme Cache Satisfaction values like 37.74%.

Cache Satisfaction is based on the server-level CacheHits and CacheRead properties for target databases running on SQL Anywhere versions 5 and 6, and on the database-level CacheHits and CacheRead properties for versions 7 and later.


Foxhound 4 » 3. The Monitor Database Page » 3.5 Peaks 
Checkpoints, Checkpoint Urgency, Recovery Urgency Peaks
Checkpoints is the highest number of CHECKPOINT operations that have been executed by the server in any sample.

Checkpoint Urgency is the highest percentage of the SET OPTION PUBLIC.checkpoint_time that was reached in any sample.

See also Alert #17 Checkpoint urgency.

Checkpoint Urgency is displayed for target databases running on SQL Anywhere version 7 and later, and is based on the database-level CheckpointUrgency property.

Recovery Urgency is the highest estimated time required to recover the database when restarting after an abnormal stoppage, expressed as a percentage of the SET OPTION PUBLIC.recovery_time, that was reached in any sample.

Checkpoint Urgency and Recovery Urgency are used by the target server to help decide when to take a checkpoint. They both increase monotonically until a checkpoint is taken, then drop to zero.

The Recovery Urgency may exceed 100% because SQL Anywhere enforces a lower boundary on the interval between successive checkpoints. This lower bound is calculated using the checkpoint_time and recovery_time options, and the default is 2 minutes. If Recovery Urgency increases rapidly immediately after one checkpoint is taken, it may continue far beyond 100% before the next checkpoint is allowed.

See also Alert #18 Recovery urgency.

Recovery Urgency is displayed for target databases running on SQL Anywhere version 7 or later, and is based on the database-level RecoveryUrgency property.

Performance Tip: Before changing how often SQL Anywhere takes checkpoints, think twice! SQL Anywhere almost always does an excellent job of picking the right time to perform a checkpoint without your help.


Foxhound 4 » 3. The Monitor Database Page » 3.5 Peaks 
Disk/Cache: Internal Index, Leaf, Table Peaks
The Disk/Cache: Internal Index peak is the highest percentage ratio between the number of index internal-node pages that have been read from disk and from the cache.
Disk/Cache: Internal Index is displayed for target databases running on SQL Anywhere version 7 and later, and is based on the database-level DiskReadIndInt and CacheReadIndInt properties.

The Disk/Cache: Leaf peak is the highest percentage ratio between the number of index leaf pages that have been read from disk and from the cache.

Disk/Cache: Leaf is displayed for target databases running on SQL Anywhere version 7 and later, and is based on the database-level DiskReadIndLeaf and CacheReadIndLeaf properties.

The Disk/Cache: Table peak is the highest percentage ratio between the number of table pages that have been read from disk and from the cache.

Disk/Cache: Table is displayed for target databases running on SQL Anywhere version 7 and later, and is based on the database-level DiskReadTable and CacheReadTable properties.

The CacheReadTable counter is incremented every time SQL Anywhere tries to read a table page.

The DiskReadTable counter is incremented every time SQL Anywhere can't find the table in the cache and has to read it from disk.

Performance Tip: These conditions may indicate that insufficient memory in the database cache is a performance bottleneck.

Performance Tip: If the computer is dedicated to running this SQL Anywhere server and no other process of importance, consider disabling the automatic cache size tuning process by specifying the -ca 0 and -c options to set a fixed cache size.

With a dedicated computer there may be no need for SQL Anywhere to perform extra work changing the cache size up and down.

Performance Tip: Disk/Cache ratios that are consistently large may indicate that cache thrashing caused by a large database page size is a performance bottleneck.

A smaller database page size may allow important pages to remain in the cache longer rather than being swapped out to disk to make room for different (giant) pages.

Performance Tip: A long-running UNLOAD TABLE statement may result in extreme Disk/Cache: Internal Index, Leaf, Table values like "- / - / 99%".


Foxhound 4 » 3. The Monitor Database Page » 3.5 Peaks 
Incomplete Reads, Writes Peaks
The Incomplete Reads peak is the highest number of file reads that have been started but not yet completed.
Performance Tip: Consistently large Incomplete Reads values (greater than zero) may indicate that there is a performance bottleneck caused by the inability of the disk system to keep up with database activity.
See also Alert #15 Incomplete I/O.

Incomplete Reads is displayed for target databases running on SQL Anywhere version 17, and is based on the database-level CurrRead property.

The Incomplete Writes peak is the highest number of file writes that have been started but not yet completed.

Performance Tip: Consistently large Incomplete Writes values (greater than zero) may indicate that there is a performance bottleneck caused by the inability of the disk system to keep up with database activity.
See also Alert #15 Incomplete I/O.

Incomplete Writes is displayed for target databases running on SQL Anywhere version 17, and is based on the database-level CurrWrite property.


Foxhound 4 » 3. The Monitor Database Page » 3.5 Peaks 
Disk Reads, Disk Writes, Log Writes Peaks
The Disk Reads peak is the highest rate at which pages were read from disk.
Disk Reads is based on the server-level DiskRead property for target databases running on SQL Anywhere versions 5 and 6, and on the database-level DiskRead property for versions 7 and later.

The Disk Writes peak is the highest rate at which modified pages were written to disk.

Disk Writes is based on the server-level DiskWrite property for target databases running on SQL Anywhere versions 5 and 6, and on the database-level DiskWrite property for versions 7 and later.

The Log Writes peak the highest rate at which log pages were written to the transaction log.

Log Writes is based on the server-level LogWrite property for target databases running on SQL Anywhere versions 5 and 6, and on the database-level LogWrite property for versions 7 and later.

Performance Tip: Large Disk Reads, Disk Writes, Log Writes values may indicate that heavy disk I/O is a performance bottleneck.

See also Alert #16 I/O operations.

Performance Tip: Disk Reads and Disk Writes count page-level input and output operations on the SYSTEM, temporary and secondary dbspace files, and Log Writes counts pages written to the transaction log file. Other files are excluded; e.g., non-dbspace files used by LOAD and UNLOAD statements and by xp_read_file() and xp_write_file() procedure calls.


Foxhound 4 » 3. The Monitor Database Page » 3.5 Peaks 
Index Adds, Lookups, Satisfaction Peaks
The Index Adds peak is the highest rate at which entries were added to indexes.
Performance Tip: A large Index Adds value may indicate that a large number of row inserts is a performance bottleneck ...or a large number of row updates that are changing index columns.

Index Adds is based on the server-level IndAdd property for target databases running on SQL Anywhere versions 5.5 and 6, and on the database-level IndAdd property for target databases running on SQL Anywhere versions 7 and later.

The Index Lookups peak is the highest rate at which entries were looked up in an index.

Performance Tip: A large Index Lookups value may indicate that heavy index usage is a performance bottleneck ...or just the opposite; heavy index usage is often better than the alternative (frequent retrieval of data pages).

Index Lookups is based on the server-level IndLookup property for target databases running on SQL Anywhere versions 5.5 and 6, and on the database-level IndLookup property for target databases running on SQL Anywhere versions 7 and later.

The Index Satisfaction peak is the lowest percentage of times that an index lookup was satisfied by the index without having to retrieve more information from the table data.

Performance Tip: Small Index Satisfaction values (less than 100%) may indicate that low index selectivity is causing a performance bottleneck.
Index selectivity is the ability to locate individual entries within index pages without having to read table pages.

When index selectivity is low it often means

  • SQL Anywhere has chosen the wrong index for a particular query predicate (a rare event but possible),

  • the index design is inadequate for the task of satisfying that query predicate (more likely), and/or

  • the index is fragmented (also possible; see the sa_index_levels() procedure).

To increase Index Satisfaction at the database level it may be necessary to find the individual queries that are responsible; try clicking on the connection section column titles Full Index Comps or Index Satisfaction to sort the connections in descending order.

When you find the responsible queries, use SQL Anywhere's Graphical Plan With Statistics feature to examine index choice and usage.

Note: Index Satisfaction is different from Cache Satisfaction; one compares index and table usage, the other compares memory and disk.

Index Satisfaction is based on the server-level IndLookup and FullCompare properties for target databases running on SQL Anywhere versions 5.5 and 6, and on the database-level IndLookup and FullCompare properties for target databases running on SQL Anywhere versions 7 and later.


Foxhound 4 » 3. The Monitor Database Page » 3.5 Peaks 
Full Index Comps Peak
The Full Index Comps peak shows the highest rate at which additional information had to be obtained from the table data in order to satisfy an index lookup.

Performance Tip: Large values of Full Index Comps may indicate that low index selectivity is causing a performance bottleneck.

Index selectivity is the ability to locate individual entries within index pages without having to read table pages.

When index selectivity is low it often means

To reduce the number of Full Index Comps at the database level it may be necessary to find the individual queries that are responsible; try clicking on the connection section column titles Full Index Comps or Index Satisfaction to sort the connections in descending order.

When you find the responsible queries, use SQL Anywhere's Graphical Plan With Statistics feature to examine index choice and usage.

Full Index Comps is based on the server-level FullCompare property for target databases running on SQL Anywhere versions 5.5 and 6, and on the database-level FullCompare property for target databases running on SQL Anywhere versions 7 and later.


Foxhound 4 » 3. The Monitor Database Page 
3.6 Recent Samples
Recent Samples Section

[9,9999]

Recent Samples Column

Interval

Response... Heartbeat, Sample, Ping

Throughput... Req, Commits, Bytes

Conns / Parent, Child Conns

Executing, Idle, Waiting Conns

Active Req, Max Req, Unsch Req

Locks Held, Conns Blocked, Waiting Time

CPU

Temp Space, Rollback Log, Uncommitted

Cache Panics, Low Memory, Satisfaction

Checkpoints, Checkpoint Urgency, Recovery Urgency

Disk/Cache: Internal Index, Leaf, Table

Incomplete Reads, Writes

Disk Reads, Disk Writes, Log Writes

Index Adds, Lookups, Satisfaction

Full Index Comps


Foxhound 4 » 3. The Monitor Database Page » 3.6 Recent Samples 

The Recent Samples section shows the most recent 10 samples, with many of the data values shown as rates instead of counts.

Alert and All Clear messages also appear in this section, as well as messages that tell you when sampling was not successful; e.g., "Database server not found" and "Foxhound stopped".

The color highlighting in this section is controlled by values in the Peaks section above it, as follows:


Foxhound 4 » 3. The Monitor Database Page » 3.6 Recent Samples 
[9,9999]
The pair of numbers [in square brackets] above the "Recent Samples" column title are Foxhound database primary key values that can be used when coding adhoc queries; e.g., [4,1796].

The first number is the sampling_id which identifies the Foxhound Monitor session for this target database.

The meaning of the second number depends on the type of data displayed in the top row of this section; for example:

SELECT * FROM alert                   WHERE alert_occurrence           = 1796;
SELECT * FROM alert_cancelled         WHERE alert_cancelled_occurrence = 1796;
SELECT * FROM all_clear               WHERE all_clear_occurrence       = 1796;
SELECT * FROM autodropped_connection  WHERE autodrop_occurrence        = 1796;
SELECT * FROM email_failure           WHERE email_failure_occurrence   = 1796;
SELECT * FROM sample_header           WHERE sample_set_number          = 1796;

Foxhound 4 » 3. The Monitor Database Page » 3.6 Recent Samples 
Recent Samples
The Recent Samples column shows the date/time that Foxhound recorded each sample.

You can click on these links to open the History page in a separate browser window or tab, scrolled to the associated sample.


Foxhound 4 » 3. The Monitor Database Page » 3.6 Recent Samples 
Interval
The Interval column shows the actual time interval between the previous sample and this one.
Foxhound tries to record a new sample every 10 seconds but the actual interval can vary.

Foxhound uses the interval time to convert performance statistics from cumulative counts to rates; e.g., to convert the total number of disk writes into the number of disk writes per second.

A very long interval like 1h 19.8m may indicate the computer was in sleep, standby or hibernate mode.

See also Alert #1 Database unresponsive.


Foxhound 4 » 3. The Monitor Database Page » 3.6 Recent Samples 
Response... Heartbeat, Sample, Ping
Response time, also known as latency or access time, is a measure of how long it takes the database to respond to a single request:

The Response... Heartbeat time column shows how long it took for Foxhound to execute the SELECT * FROM DUMMY heartbeat or "canarian" query.

Performance Tip: Heartbeat time should be very small. Repeated values larger than 1s may indicate a performance bottleneck, and sudden increases in value may indicate a period of non-responsiveness.
Note that there's a difference between precision and accuracy; for example, two successive Heartbeat measurements like 25ms and 50ms may be very precise but they may not accurately represent an immediate 100% slowdown in performance.

On the other hand, a long period of Heartbeat values averaging 25ms, followed by a long period of 50ms numbers, may indeed accurately reflect a significant change in performance.

See also Alert #2 Long heartbeat.

Heartbeat time is calculated by Foxhound; it is not based on any builtin SQL Anywhere properties.

The Response... Sample time column shows how long it took for Foxhound to gather all the performance data for this sample.

Sample time should always be longer than Heartbeat time, and it will grow longer with an increasing number of connections because of the extra work involved to analyze each sample.

The Sample time is calculated after Heartbeat time and the two values do not overlap. It is possible for the Heartbeat time to be much longer than the Sample Time (e.g., 10m versus 100ms) when the target database becomes unresponsive but eventually responds; the long Heartbeat time reflects the unresponsiveness whereas the subsequent short Sample Time measures the return to normal.

Performance Tip: A long Sample Time may indicate a performance problem with Foxhound rather than the target database; e.g.:

To see where the performance problem lies, repeatedly run the following ISQL script against your target database; if this script runs quickly but Foxhound reports a large Sample Time, the problem lies with Foxhound:
SELECT * INTO #temp1 FROM rroad_engine_properties();
SELECT * INTO #temp2 FROM rroad_database_properties(1);
SELECT * INTO #temp3 FROM rroad_connection_properties();
DROP TABLE #temp1;
DROP TABLE #temp2;
DROP TABLE #temp3;

See also Alert #3 Long sample time.

Sample time is calculated by Foxhound; it is not based on any builtin SQL Anywhere properties.

The Response... Ping time column shows how long it took for Foxhound to connect and disconnect from the target database.

Performance Tip: Long Ping times may indicate that a performance bottleneck is preventing the target database from accepting new connections on a timely basis.
Ping times for local "shared memory" connections may be similar to or even smaller than Sample times for the same database, but they will usually be larger than Heartbeat times.

Ping times for network connections may be much longer than Ping times for local connections.

Foxhound uses a custom "ping" process to test separate connections to the target database.

Each time the ping process runs it opens a new connection to the target database via the embedded SQL interface, issues a SELECT @@SPID command and then immediately disconnects.

This is different from the Foxhound Monitor process which connects to the target database via ODBC and keeps that connection open while it collects multiple samples.

Note that the Foxhound ping process does not use the dbping.exe utility that ships with SQL Anywhere, nor does it use the ODBC interface that is used to gather sample data.

Also note that the separate ping process "uses up" another SQL Anywhere connection number each time it runs, which is once approximately every 10 seconds for each target database.

The new ping process can be used in three ways:

  1. As an addition to the Foxhound Monitor sampling process, the ping process tests the target database's ability to accept new connections as well as providing data for a third measure of response time: ping response time.

    See Monitor Options - Include Ping.

    See also Alert #35 Separate ping failed.

  2. As an alternative to Foxhound's sampling process, ping-only sampling may be used to check for Alert #1 Database unavailable without storing a lot of data in the Foxhound database.

    See Monitor Options - Ping-Only Sampling.

  3. As an alternative to on/off Sample Schedule settings, ping-only sampling may be specified at various times of the day.

    For example, ping-only sampling might be scheduled during the overnight hours

    • when a large connection pool is mostly idle, or

    • when a heavy load is expected and nobody much cares about performance.

    See Monitor Options - Sample Schedule 'P' characters.

Ping time is calculated by Foxhound; it is not based on any builtin SQL Anywhere properties.


Foxhound 4 » 3. The Monitor Database Page » 3.6 Recent Samples 
Throughput... Req, Commits, Bytes
Throughput, also known as bandwidth, is a measure of how much work the database has performed:

Throughput... Req is the rate at which the server has started processing a new request or resumed processing an existing request during the preceding interval.

Performance Tip: Large Throughput... Req values may indicate that heavy client load on the database is a performance bottleneck. Small values may indicate that some other performance bottleneck is preventing the database from processing client requests.

Note that "request" is an atomic internal unit of work processed by the server for a connection, not a client-server communication request from a client application to the SQL Anywhere server.

The latter is not displayed by Foxhound; however, it is recorded by Foxhound in the sample_connection.RequestsReceived column for adhoc queries of connection-level data.

Throughput... Req is based on the server-level Req property

(note that this is different from the connection-level Throughput... Req column which is based on the connection-level ReqCountActive property)

Throughput... Commits is the approximate rate at which commit requests have been executed by all connections in the previous interval.

Performance Tip: Large Throughput... Commits values may indicate that heavy client load on the database is a performance bottleneck. Small values may indicate that some other performance bottleneck is preventing the database from processing client requests.

This number is approximate because a connection may issue a commit and disconnect between two Foxhound samples, and that commit won't be included in this total.

The total since the server started is reset to zero and accumulation starts over again when sampling is stopped and restarted. "Commits" is roughly the same as "transaction count" unless client connections issue a lot of redundant commits.

Throughput... Commits is based on the sum of the connection-level Commit property.

Foxhound does gather the database-level Commit property for target databases running on SQL Anywhere 12 and later, and the value is stored in the sample_detail."Commit" column for adhoc queries, but it is not the value displayed by Foxhound on the Monitor and other pages.

Historically speaking, the value that Foxhound does display (the sum of the connection-level Commit property) is known to be more reliable than the database-level Commit property. However, it is possible that Foxhound may not count commits performed by short-lived connections that aren't captured at all.

This and other values displayed by Foxhound are intended for performance analysis purposes, not accounting or other purposes that require absolute accuracy.

Throughput... Bytes is the rate at which data has been received by and sent by the server across the client server interface in the previous interval.

Performance Tip: Large Throughput... Bytes values may indicate that heavy client load on the database is a performance bottleneck. Small values may indicate that some other performance bottleneck is preventing the database from processing client requests.

Throughput... Bytes is displayed for target databases running on SQL Anywhere versions 7 and later. It is based on the server-level BytesReceived and BytesSent properties for target databases running on SQL Anywhere versions 7 through 12, and on the database-level BytesReceived and BytesSent properties for versions 16 and later.


Foxhound 4 » 3. The Monitor Database Page » 3.6 Recent Samples 
Conns / Parent, Child Conns
The Conns column shows how many connections existed on a target database running on SQL Anywhere 11 or earlier, with Foxhound itself counting as 1 connection.
- or -

The Parent, Child Conns columns show how many primary (parent) and internal (child) connections existed on a target databases running on SQL Anywhere 12 or later, with Foxhound itself counting as 1 parent connection.

Performance Tip: A large Conns or Parent Conns value may indicate that heavy client load on the database is a performance bottleneck.

See also Alert #26 Connections.

Performance Tip: A large Child Conns value (up to the number of processors available) may indicate that heavy use of intra-query parallelism is a performance bottleneck.

With intra-query parallelism, multiple processors (child connections) can do work for one client connection (the parent).

A small number of individual client connections (e.g., one) may be responsible for heavy CPU usage on multiple child connections, thus preventing other client connections from getting their work done. If you suspect this is happening, try turning down the level of intra-query parallelism (for example, SET OPTION PUBLIC.MAX_QUERY_TASKS = '4' on an eight-processor computer) or turning it off altogether (SET OPTION PUBLIC.MAX_QUERY_TASKS = '1').

The parent connection count is based on the database-level ConnCount property, and the child connection count is calculated by Foxhound as the number of connections with non-zero connection-level ParentConnection property values.

Performance Tip: The sum of the Parent and Child Conns columns should match the total number of connections shown in the connections detail section at the bottom of the page, but it may differ for the following reasons:


Foxhound 4 » 3. The Monitor Database Page » 3.6 Recent Samples 
Executing, Idle, Waiting Conns
The Executing, Idle, Waiting Conns columns show how many connections were executing, idle or waiting, where "waiting" includes blocked connections.

Performance Tip: A large Waiting Conns value may indicate a performance bottleneck; have a look at the connection-level Current Req Status column to find the affected connections.

The database-level Executing, Idle, Waiting Conns columns are closely related to the connection-level Current Req Status value:

       Foxhound              Foxhound
    Database-Level       Connection-Level                                                     SQL Anywhere 
Executing Idle Waiting  Current Req Status           SQL Anywhere Description                 ReqStatus
----------------------  ---------------------------  ---------------------------------------  -----------------
   Yes      -     -     Executing                    The connection is executing a request.   Executing     

    -      Yes          Idle                         The connection is not currently          Idle              
                                                        processing a request.

    -       -    Yes    Waiting for thread           The connection has work to do and        Unscheduled         
                                                        is waiting for a worker thread.

    -       -    Yes    Waiting for I/O              The connection is waiting for an I/O.    BlockedIO     
      
    -       -    Yes    Waiting for shared resource  The connection is waiting for access to  BlockedContention    
                                                     shared database server data structures.

    -       -    Yes    Blocked by lock              The connection is blocked waiting        BlockedLock
                                                     for a locked row.         

    -       -    Yes    Blocked by mutex             The connection is blocked waiting        BlockedLock (1) 
                                                     for a mutex.         

    -       -    Yes    Blocked by semaphore         The connection is blocked waiting        Executing (2)         
                                                     for a semaphore.

    Note 1: Foxhound ignores the SQL Anywhere connection-level ReqStatus value 'BlockedLock' for a connection 
            blocked by a mutex on a target database running on SQL Anywhere 17.

    Note 2: Foxhound ignores the SQL Anywhere connection-level ReqStatus value 'Executing' for a connection 
            blocked by a semaphore on a target database running on SQL Anywhere 17.

Here's an analogy that doesn't prove anything but might help understanding:

Performance Tip: The sum of the Executing, Idle, Waiting Conns columns should match the sum of the Parent and Child Conns columns, but it may differ for the following reasons:

The Executing, Idle, Waiting Conns columns are displayed for target databases running on SQL Anywhere 9 and later.


Foxhound 4 » 3. The Monitor Database Page » 3.6 Recent Samples 
Active Req, Max Req, Unsch Req

Active Req is the number of server workers that are currently handling client-side requests.

Performance Tip: Large Active Req values may indicate that heavy client load on the database is a performance bottleneck.

Performance Tip: Small Active Req values may indicate that some other performance bottleneck is preventing the database from processing client requests.

Note that "request" is an atomic internal unit of work processed by the server for a connection, not a client-server communication request from a client application to the SQL Anywhere server.

The latter is not displayed by Foxhound; however, it is recorded by Foxhound in the sample_connection.RequestsReceived column for adhoc queries of connection-level data.

Active Req is based on the server-level ActiveReq property.

Max Req is the maximum number of requests that could be processed at one time (the -gn option).

Performance Tip: A Max Req value that is too small may cause the Unsch Req value to increase, in turn causing a bottleneck that increases response time and/or decreases throughput.

Performance Tip: A Max Req value that varies up and down may indicate the server is unable to correctly determine the best value.

If the computer is dedicated to running this SQL Anywhere server and no other process of importance, consider disabling the dynamic tuning of the multiprogramming level by specifying the -gna 0 and -gn options to set a fixed value. With a dedicated computer there may be no need for SQL Anywhere to perform extra work changing the multiprogramming level up and down.

Max Req is displayed for target databases running on SQL Anywhere 9 and later, and is based on the server-level Threads property for SQL Anywhere 9 and on the server-level MultiProgrammingLevel property for SQL Anywhere 10 and later.

Unsch Req (formerly called Waiting Req) shows the number of requests that were waiting to be processed.

Performance Tip: Large Unsch Req values may indicate that some performance bottleneck is preventing the database from processing its workload.
The bottleneck may simply be a Max Req value that is too low (solution: increase the server -gn option), but the problem may be harder than that; for example, if the application design results in excessive blocking and/or too many long-running requests.

See also Alert #14 Unscheduled requests.

Unsch Req is based on the server-level UnschReq property.


Foxhound 4 » 3. The Monitor Database Page » 3.6 Recent Samples 
Locks Held, Conns Blocked, Waiting Time
Locks Held is the total number of locks held by all connections.
Performance Tip: Large numbers of Locks Held are not a problem in themselves; SQL Anywhere is perfectly capable of handling millions of locks being held at one time.
When locks become a problem is when they are held too long and cause other connections to be blocked (prevented) from doing work.

For example, when Locks Held grows large during a period of high activity (high CPU, disk), and then *remains* high for a period of low activity, that may indicate an application flaw where a COMMIT is not issued as soon as it should be.

See also Alert #25 Locks.

The Locks Held value does not include schema locks. For example, if a SELECT statement holds a schema lock that is blocking another connection from executing an ALTER TABLE statement, Locks Held may be empty even though Conns Blocked is 1.

Locks Held is displayed for target databases running on SQL Anywhere 10 and later, and is based on the database-level LockCount property.

Conns Blocked is the number of connections that are blocked.

Performance Tip: Large numbers of blocked connections may indicate a serious performance bottleneck caused by locks being held too long.
The cause may be an application that breaks this fundamental rule of transaction design:
"Never yield control of the mouse or keyboard to the end user while database locks are being held; always do a COMMIT first."

When that rule is broken a long-running transaction is often the result, with those locks preventing other users from getting their work done while the first user decides what to do (or takes a lunch break).

See also Alert #23 Blocked connections and Alert #24 Conn blocking others.

Conns Blocked is based on the connection-level BlockedOn property for target databases running on SQL Anywhere versions 5.5 through 16, and on the connection-level BlockedOn, LockObjectType and LockObjectOID properties for version 17.

Note that Foxhound calculates the database-level Conns Blocked value by summarizing data provided by SQL Anywhere at the connection level.

Waiting Time is the total time all current connections were blocked or forced to wait during the previous interval.

Performance Tip: Long waiting times may indicate a serious performance bottleneck caused a lack of resources.
The Waiting Time value is not cumulative. A obscenely large value (such as a Waiting Time of 4h in an Interval of only 13s) is possible when, for example, 1000 connections are all trying to get work done but SQL Anywhere is only able to execute a few requests at a time.

During a period of long Waiting Time values a sudden spike (for example, 3h to 6h) may occur when SQL Anywhere performs a checkpoint.

Waiting Time is displayed for target databases running on SQL Anywhere 9 and later, and is based on the sum of the connection-level ReqTimeBlockContention, ReqTimeBlockIO, ReqTimeBlockLock and ReqTimeUnscheduled properties.


Foxhound 4 » 3. The Monitor Database Page » 3.6 Recent Samples 
CPU
The CPU column shows two values: the percent used during the preceding interval (nn%) and the number of processors used (of n).
The CPU time values are for the target SQL Anywhere server as a whole, not an individual target database when the server is running more than one database.

The percentages are adjusted for the number of CPUs being used by SQL Anywhere.

For example, if four processors are used, and SQL Anywhere is using 100% of one processor and 0% of the other three, Foxhound will show the CPU time as 25% of 4.

Performance Tip: CPU time is most important when the value is unexpected.

Performance Tip: If you suspect that too much CPU time is being used by SQL code inside stored procedures, triggers, events and/or web services, SQL Anywhere's own "procedure profiler" is the very best way to find those bottlenecks.

See also Alert #4 CPU time and Alert #27 Connection CPU.

The CPU time and CPU count values are displayed for target databases running on SQL Anywhere version 7 and later, and are based on the server-level NumLogicalProcessorsUsed, NumProcessorsAvail, NumProcessorsMax and ProcessCPU properties.


Foxhound 4 » 3. The Monitor Database Page » 3.6 Recent Samples 
Temp Space, Rollback Log, Uncommitted
The Temp Space column shows the total amount of temporary file space used by all the connections.
Temporary pages are used for many purposes, most often to hold intermediate results during query processing. Even if there is no temporary file, as with an in-memory no write database, temporary space is allocated and used by the engine.

Performance Tip: Large amounts of Temp Space may indicate that runaway queries are a performance bottleneck.

To find which connections are using the most temporary file space, click on the Temp Space column heading in the connection section of Foxhound Monitor or History page. That will sort the connections in decreasing order by Temp Space.

To limit the amount of temporary file space any individual connection can use on a target database running on SQL Anywhere version 10 or later, use the MAX_TEMP_SPACE option; e.g., SET OPTION PUBLIC.MAX_TEMP_SPACE = '1G';

See also Alert #21 Temp file usage and Alert #22 Conn temp file usage.

Performance Tip: The term "temporary file" is misleading and it should be renamed "temporary space" because the data may or may not reside in the actual temporary file (which may not exist at all).

Temp Space is displayed for target databases running on SQL Anywhere version 8 and later and is based on the database-level PageSize property and the sum of the connection-level TempFilePages property.

Rollback Log shows how much space in the rollback log is currently used by all the connections.

Performance Tip: A large Rollback Log value at the server level may indicate that long-running transactions are a performance bottleneck.
Look for confirmation of this in the server-level Conns Blocked column and the connection-level Transaction Time column.

See also Alert #32 Rollback log usage.

Performance Tip: The final checkpoint stage of a normal server shutdown may also take a long time while the changes recorded in a large rollback log are being reversed.

RollBack Log is based on the database-level PageSize property and the sum of the connection-level RollbackLogPages property.

Uncommitted shows how many operations have been performed by all the connections but not yet committed.

Performance Tip: A large number of Uncommitted operations at the server level may indicate that long-running transactions are a performance bottleneck.
Look for confirmation of this in the server-level Conns Blocked column and the connection-level Transaction Time column.

See also Alert #33 Uncommitted operations and Alert #34 Long uncommitted.

Performance Tip: The count of Uncommitted operations includes (and may be exactly equal to) the number of uncommitted row-level inserts, updates and deletes.

The count of Uncommitted operations may be larger than the number of INSERT, UPDATE and DELETE statements because one statement can affect many rows.

If a single row is inserted, then updated twice and finally deleted, for example, that counts as four Uncommitted operations.

If a single row matches the WHERE clause of an UPDATE statement but all of the new column values in the SET clause are the same as the current values in the row, that row is not updated and the operation is not counted as an Uncommitted operation.

A table-level schema lock obtained by a SELECT statement is not counted as an Uncommitted operation even though the lock is not cleared until a subsequent commit or rollback (and may thus be regarded as "uncommitted").

Uncommitted is based on the sum of the connection-level UncommitOp property.


Foxhound 4 » 3. The Monitor Database Page » 3.6 Recent Samples 
Cache Panics, Low Memory, Satisfaction
Cache Panics is the number of times the target server failed to find a cache page to allocate in the previous interval.
See also Alert #29 Cache panics.

Cache Panics is displayed for target databases running on SQL Anywhere version 9 and later, and is based on the server-level CachePanics property.

Low Memory is the number of times the target server had to change a query execution plan because cache memory ran low in the previous interval.

Low Memory is displayed for target databases running on SQL Anywhere version 8 or later and is based on the database-level QueryLowMemoryStrategy property.

Cache Satisfaction is the percentage of times a database page lookup was satisfied by the cache in the previous interval.

Performance Tip: These conditions may indicate that insufficient memory in the database cache is a performance bottleneck:

Performance Tip: If the computer is dedicated to running this SQL Anywhere server and no other process of importance, consider disabling the automatic cache size tuning process by specifying the -ca 0 and -c options to set a fixed cache size. With a dedicated computer there may be no need for SQL Anywhere to perform extra work changing the cache size up and down.

Performance Tip: A long-running UNLOAD TABLE statement may result in extreme Cache Satisfaction values like 37.74%.

Cache Satisfaction is based on the server-level CacheHits and CacheRead properties for target databases running on SQL Anywhere versions 5 and 6, and on the database-level CacheHits and CacheRead properties for versions 7 and later.


Foxhound 4 » 3. The Monitor Database Page » 3.6 Recent Samples 
Checkpoints, Checkpoint Urgency, Recovery Urgency
Checkpoints is the number of CHECKPOINT operations that have been executed by the server in the previous interval.
Performance Tip: Checkpoint operations can be expensive. More than one checkpoint every once in a while may indicate that undesirable behavior is causing a performance bottleneck.
Generally speaking, explicit CHECKPOINT statements are not required in application programs because the server does a good job of scheduling checkpoints to minimize their impact on performance. An explicit CHECKPOINT should never be used without careful consideration, especially in a busy multi-user environment.

Checkpoints are different from commits; a commit ensures that the transaction log file is up to date whereas a checkpoint ensures that the database file is up to date. As long as commits are performed frequently, performance can be greatly improved by delaying checkpoint operations... which is what SQL Anywhere does by default.

Performance Tip: Think twice before running a database without a transaction log. Even if you don't need the log for recovery purposes, SQL Anywhere will perform a checkpoint after every commit if there's no transaction log... and that can be very bad for performance.

Checkpoints is based on the server-level Chkpt property for target databases running on SQL Anywhere versions 5 and 6, and on the database-level Chkpt property for versions 7 and later.

Checkpoint Urgency is the percentage of the SET OPTION PUBLIC.CHECKPOINT_TIME value that has elapsed since the previous checkpoint.

See also Alert #17 Checkpoint urgency.

Checkpoint Urgency is displayed for target databases running on SQL Anywhere version 7 and later, and is based on the database-level CheckpointUrgency property.

Recovery Urgency is the estimated time required to recover the database when restarting after an abnormal stoppage, expressed as a percentage of the SET OPTION PUBLIC.RECOVERY_TIME value.

Checkpoint Urgency and Recovery Urgency are used by the target server to help decide when to take a checkpoint. They both increase monotonically until a checkpoint is taken, then drop to zero.

The Recovery Urgency may exceed 100% because SQL Anywhere enforces a lower boundary on the interval between successive checkpoints. This lower bound is calculated using the checkpoint_time and recovery_time options, and the default is 2 minutes. If Recovery Urgency increases rapidly immediately after one checkpoint is taken, it may continue far beyond 100% before the next checkpoint is allowed.

See also Alert #18 Recovery urgency.

Recovery Urgency is displayed for target databases running on SQL Anywhere version 7 or later, and is based on the database-level RecoveryUrgency property.

Performance Tip: Before changing how often SQL Anywhere takes checkpoints, think twice! SQL Anywhere almost always does an excellent job of picking the right time to perform a checkpoint without your help.


Foxhound 4 » 3. The Monitor Database Page » 3.6 Recent Samples 
Disk/Cache: Internal Index, Leaf, Table
Disk/Cache: Internal Index is the percentage ratio between the number of index internal-node pages that have been read from disk and from the cache in the previous interval.
Disk/Cache: Internal Index is displayed for target databases running on SQL Anywhere version 7 and later, and is based on the database-level DiskReadIndInt and CacheReadIndInt properties.

Disk/Cache: Leaf is the percentage ratio between the number of index leaf pages that have been read from disk and from the cache in the previous interval.

Disk/Cache: Leaf is displayed for target databases running on SQL Anywhere version 7 and later, and is based on the database-level DiskReadIndLeaf and CacheReadIndLeaf properties.

Disk/Cache: Table is the percentage ratio between the number of table pages that have been read from disk and from the cache in the previous interval.

Disk/Cache: Table is displayed for target databases running on SQL Anywhere version 7 and later, and is based on the database-level DiskReadTable and CacheReadTable properties.

The CacheReadTable counter is incremented every time SQL Anywhere tries to read a table page.

The DiskReadTable counter is incremented every time SQL Anywhere can't find the table in the cache and has to read it from disk.

Performance Tip: These conditions may indicate that insufficient memory in the database cache is a performance bottleneck.

Performance Tip: If the computer is dedicated to running this SQL Anywhere server and no other process of importance, consider disabling the automatic cache size tuning process by specifying the -ca 0 and -c options to set a fixed cache size.

With a dedicated computer there may be no need for SQL Anywhere to perform extra work changing the cache size up and down.

Performance Tip: Disk/Cache ratios that are consistently large may indicate that cache thrashing caused by a large database page size is a performance bottleneck.

A smaller database page size may allow important pages to remain in the cache longer rather than being swapped out to disk to make room for different (giant) pages.

Performance Tip: A long-running UNLOAD TABLE statement may result in extreme Disk/Cache: Internal Index, Leaf, Table values like "- / - / 99%".


Foxhound 4 » 3. The Monitor Database Page » 3.6 Recent Samples 
Incomplete Reads, Writes
Incomplete Reads is the current number of file reads that have been started but not yet completed.
Performance Tip: Consistently large Incomplete Reads values (greater than zero) may indicate that there is a performance bottleneck caused by the inability of the disk system to keep up with database activity.
See also Alert #15 Incomplete I/O.

Incomplete Reads is displayed for target databases running on SQL Anywhere version 17, and is based on the database-level CurrRead property.

Incomplete Writes is the current number of file writes that have been started but not yet completed.

Performance Tip: Consistently large Incomplete Writes values (greater than zero) may indicate that there is a performance bottleneck caused by the inability of the disk system to keep up with database activity.
See also Alert #15 Incomplete I/O.

Incomplete Writes is displayed for target databases running on SQL Anywhere version 17, and is based on the database-level CurrWrite property.


Foxhound 4 » 3. The Monitor Database Page » 3.6 Recent Samples 
Disk Reads, Disk Writes, Log Writes
Disk Reads is the number of pages that have been read from disk in the previous interval.
Disk Reads is based on the server-level DiskRead property for target databases running on SQL Anywhere versions 5 and 6, and on the database-level DiskRead property for versions 7 and later.

Disk Writes is the number of modified pages that have been written to disk in the previous interval.

Disk Writes is based on the server-level DiskWrite property for target databases running on SQL Anywhere versions 5 and 6, and on the database-level DiskWrite property for versions 7 and later.

Log Writes column shows the number of pages that have been written to the transaction log in the previous interval.

Log Writes is based on the server-level LogWrite property for target databases running on SQL Anywhere versions 5 and 6, and on the database-level LogWrite property for versions 7 and later.

Performance Tip: Large Disk Reads, Disk Writes, Log Writes values may indicate that heavy disk I/O is a performance bottleneck.

See also Alert #16 I/O operations.

Performance Tip: Disk Reads and Disk Writes count page-level input and output operations on the SYSTEM, temporary and secondary dbspace files, and Log Writes counts pages written to the transaction log file. Other files are excluded; e.g., non-dbspace files used by LOAD and UNLOAD statements and by xp_read_file() and xp_write_file() procedure calls.


Foxhound 4 » 3. The Monitor Database Page » 3.6 Recent Samples 
Index Adds, Lookups, Satisfaction
Index Adds is the number of times an entry has been added to an index in the previous interval.

Performance Tip: A large Index Adds value may indicate that a large number of row inserts is a performance bottleneck ...or a large number of row updates that are changing index columns.

Index Adds is based on the server-level IndAdd property for target databases running on SQL Anywhere versions 5.5 and 6, and on the database-level IndAdd property for target databases running on SQL Anywhere versions 7 and later.

Index Lookups is the number of times an entry has been looked up in an index in the previous interval.

Performance Tip: A large Index Lookups value may indicate that heavy index usage is a performance bottleneck ...or just the opposite; heavy index usage is often better than the alternative (frequent retrieval of data pages).

Index Lookups is based on the server-level IndLookup property for target databases running on SQL Anywhere versions 5.5 and 6, and on the database-level IndLookup property for target databases running on SQL Anywhere versions 7 and later.

Index Satisfaction is the percentage of times that an index lookup was satisfied by the index without having to retrieve more information from the table data in the previous interval.

Performance Tip: Small Index Satisfaction values (less than 100%) may indicate that low index selectivity is causing a performance bottleneck.
Index selectivity is the ability to locate individual entries within index pages without having to read table pages.

When index selectivity is low it often means

  • SQL Anywhere has chosen the wrong index for a particular query predicate (a rare event but possible),

  • the index design is inadequate for the task of satisfying that query predicate (more likely), and/or

  • the index is fragmented (also possible; see the sa_index_levels() procedure).

To increase Index Satisfaction at the database level it may be necessary to find the individual queries that are responsible; try clicking on the connection section column titles Full Index Comps or Index Satisfaction to sort the connections in descending order.

When you find the responsible queries, use SQL Anywhere's Graphical Plan With Statistics feature to examine index choice and usage.

Note: Index Satisfaction is different from Cache Satisfaction; one compares index and table usage, the other compares memory and disk.

Index Satisfaction is based on the server-level IndLookup and FullCompare properties for target databases running on SQL Anywhere versions 5.5 and 6, and on the database-level IndLookup and FullCompare properties for target databases running on SQL Anywhere versions 7 and later.


Foxhound 4 » 3. The Monitor Database Page » 3.6 Recent Samples 
Full Index Comps
Full Index Comps shows how many times additional information had to be obtained from the table data in order to satisfy an index lookup in the previous interval.

Performance Tip: Large values of Full Index Comps may indicate that low index selectivity is causing a performance bottleneck.

Index selectivity is the ability to locate individual entries within index pages without having to read table pages.

When index selectivity is low it often means

To reduce the number of Full Index Comps at the database level it may be necessary to find the individual queries that are responsible; try clicking on the connection section column titles Full Index Comps or Index Satisfaction to sort the connections in descending order.

When you find the responsible queries, use SQL Anywhere's Graphical Plan With Statistics feature to examine index choice and usage.

Full Index Comps is based on the server-level FullCompare property for target databases running on SQL Anywhere versions 5.5 and 6, and on the database-level FullCompare property for target databases running on SQL Anywhere versions 7 and later.


Foxhound 4 » 3. The Monitor Database Page 
3.7 Connections
Connections Section

Click on a title below to sort it...

Favorable?

Hide Details / Show Details

Conn #, User, OS User, IP, Name

Time Connected

Throughput... Req, Commits, Bytes

Locks Held, Conns Blocked, Transaction Time

Waiting Time, Busy, Wait, Idle

CPU, Child Conns

Temp Space, Rollback Log, Uncommitted

Low Memory, Cache Satisfaction

Time Since Last Request

Current Req Status

Disk/Cache: Internal Index, Leaf, Table

Disk Reads, Disk Writes, Log Writes

Index Adds, Lookups, Satisfaction

Full Index Comps

Isolation Level

AutoDropped for this reason:

Autodrop Result:

Blocked By:

Block Reason:

Locked Row Query:

Last Statement:

Last Plan Text:


Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 

The Connections section shows up to 100 connections as they existed when the Most Recent Sample was recorded.

To see more connections, or to see connections as they existed for earlier samples, switch to the History page.

This section will be empty if connection details are not being recorded; see Foxhound Options - Connection sampling threshold.

The up or down arrow to the left of a single column title indicates that entries in this section are sorted in ascending or decreasing order by that column. Click on that column title to change the direction of that sort (ascending to or from descending), or click on a different column title to sort the entries by that column.

Note: If you add up the connection-level figures like "Req" you might not get the same number as shown in the server-level "Req" column. That's because the connection-level and server-level statistics are recorded at slightly different times, and one value might lag behind the other.


Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 
Click on a title below to sort it, or click here to sort on ...
Some of the connection-level data appears on separate lines (e.g., Last Statement:) so there are no column titles to click on when you want to sort on that data. In these cases you have two choices to sort the connection entries:
  1. Click on the title text on the line; e.g., click on Last Statement:

  2. Click on the title text in the "... or click here to sort on ..." line if there are no connection entries with that data on the display.

If Conn # is selected as the sort column, the connection number of child connections is used as a secondary sort column so parent and child connections appear together.

If some other column (not Conn#) is selected as the primary sort column, Conn # is used as a secondary sort column. In this case parent and child connections will not appear together.

For more help on these lines:


Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 
Favorable? xxx
This message appears when "xxx" contains one or more N's:

Favorable? xxx  Some data may be missing because settings on the target database are not favorable to the recording of data. 

The Favorable? field displays a combination of three Y, N and - characters to indicate whether or not three settings on the target database are (or were) favorable to the recording of data for Foxhound to display on the Monitor, History and Connection History pages:

You can click on the Favorable? link to open Monitor Options - 14. Change Target Settings to change these three settings:

  1. The RememberLastPlan server option controls whether or not anything is displayed in this connection-level field:

    • Last Plan Text

  2. The RememberLastStatement server option controls whether or not anything is displayed in these connection-level fields:

    • Blocked Statement
    • Last Statement

  3. The RequestTiming server option controls whether or not anything is displayed in these connection-level columns:

    • Throughput... Req
    • Waiting Time
    • Busy, Wait, Idle

Performance Tip: Number 2 (RememberLastStatement) is by far the most useful of the three.

Performance Tip: Changes to these server options only affect future samples gathered by Foxhound; there is no way to go back and "fix" historical data.

Performance Tip: Changes to these server options on a High Availability primary database or a Read-Only Scale-Out root database will not be automatically transmitted to a secondary or copy database.

However, since these are server options rather than database options, you can use the Favorable? field on the secondary or copy database to make the same changes even though the Foxhound connections to those databases are read-only.

Performance Tip: After a High Availability failover, it is possible for the Favorable? field on the Monitor page for the secondary database to show different values from the Change Target Settings section on the Monitor Options page for the "same" database (which isn't actually the same any more).

If the target database is a High Availability secondary database and a failover occurs (primary fails, secondary takes over), the Favorable Current Settings? column may show [not available].

The reason for this is that the Monitor Options - Change Target Settings section attempts to open a new connection to the secondary database, and the database that used to be the secondary is now the primary so there's no secondary database available. The Foxhound sampling session, however, remains connected to the original database (once the secondary, now the primary) so there is an apparent inconsistency between Favorable Current Settings? showing [not available], and the Foxhound Monitor page showing that everything is OK.

But wait, there's more! If the failed database that was the original primary database is restarted, it will become the new secondary database, and the Favorable Current Settings? column will show actual values rather than [not available]... but those values will be coming from a different database than the Foxhound sampling session is showing. That's because the Monitor Options - Change Target Settings section opens a new connection to the secondary database, and the Foxhound Monitor session remains connected to the original database (once the secondary, now the primary).

The RememberLastStatement server option is supported by target databases running on SQL Anywhere version 8 and later, while the RememberLastPlan and RequestTiming server options are supported by target databases running on SQL Anywhere version 9 and later.


Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 
Hide Details / Show Details
The Hide Details / Show Details buttons alternate between hiding and displaying the following lines for each connection:

Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 
Conn #, User, OS User, IP, Name
The Conn #, User, OS User, IP, Name columns identify each connection.
Performance Tip: If the target database is running on SQL Anywhere Version 9 or later, the Conn #, User, OS User, IP, Name columns form a link that opens the Connection History page in a separate browser window or tab. That page will show just this one single connection over time.

Conn # is the connection number of the connection.

SQL Anywhere assigns a unique connection number to each connection started since the database started. Recent versions of SQL Anywhere assign small numbers (1, 2, 3, ...) to external client connections, and large numbers to events, web services and internal ("temporary") connections (1000000065, 1000000066, ...).
The range for external client connection numbers is 1 through 999,999,999. If that range is exceeded the numbering starts at 1 again, but numbers already in use are skipped.

There will never be two connections with the same number until the SQL Anywhere server is stopped and restarted.

Two numbers may be shown in the Conn # column for temporary internal or "child" connections that have been started by some other "parent" connection.

In this case, the first number will be the parent connection number and the second number will be the actual connection number for the internal connection; e.g., 1 1000000090
Conn #, User, OS User, IP, Name
1 / DBA / Breck / - / ddd16-1
1 1000000090 / - / - / - / INT: Exchange
1 1000000091 / - / - / - / INT: Exchange
1 1000000092 / - / - / - / INT: Exchange
1 1000000093 / - / - / - / INT: Exchange
1 1000000094 / - / - / - / INT: Exchange
1 1000000095 / - / - / - / INT: Exchange
1 1000000096 / - / - / - / INT: Exchange
1 1000000097 / - / - / - / INT: Exchange

The Conn # column contains a single number for target databases running on SQL Anywhere 5.5 through 11, and one or two numbers for target databases running on SQL Anywhere 12 and later.

When the Conn # contains a single number, it is based on the connection-level Number property.

When the Conn # contains a two numbers, the first number is based on the connection-level ParentConnection property and the second number is based on the connection-level Number property.

Performance Tip: To see child connections together with their parent connections, click on the "Conn #" column title to sort the connection section on that column.

Performance Tip: The frequent appearance of multiple child connections (like the "INT: Exchange" entries shown above) may indicate a bottleneck caused by runaway intra-query parallelism.

Performance Tip: Be on the lookout for short-lived "INT: Exchange" connections that may indicate a waste of resources.

User is the SQL Anywhere database user id that was used to make the connection; e.g., DBA.

User is based on the connection-level Userid property.

OS User is the operating system user id associated with the client process.

When the OS User is available, it may be easier to use for administrative purposes than the SQL Anywhere user id or the IP address; e.g., when identifying individual users and/or contacting them when connections are dropped.

OS User is displayed for target databases running on SQL Anywhere version 11 and later and is based on the connection-level OSUser property.

IP is the network IP address of the client side of the connection; e.g., 192.168.1.104.

IP is based on the connection-level NodeAddress property.

Name is the connection name of the connection.

Performance Tip: Try using the ConnectionName (CON=) parameter to uniquely identify the actual end user responsible for each client connection.
This is sometimes helpful when it's too hard to figure out who's doing what by looking at the User, OS User or IP values in Foxhound output.

Connection names may be automatically assigned as follows:

Name is based on the connection-level Name property.


Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 
Time Connected
Time Connected is the elapsed time between the time this connection was established and the sample time.
Time Connected is displayed for target databases running on SQL Anywhere 9 and later, and is based on the connection-level LoginTime property.

Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 
Throughput... Req, Commits, Bytes
Throughput, also known as bandwidth, is a measure of how much work the database has performed:

Throughput... Req is the rate at which the server has started processing a new request or resumed processing an existing request for this connection in the previous interval.

Performance Tip: Large Throughput... Req values may indicate that this connection is placing a heavy load on the database.

Note that "request" is an atomic internal unit of work processed by the server for a connection, not a client-server communication request from a client application to the SQL Anywhere server.

The latter is not displayed by Foxhound; however, it is recorded by Foxhound in the sample_connection.RequestsReceived column for adhoc queries of connection-level data.

Throughput... Req is displayed for target databases running on SQL Anywhere version 9 and later, and is based on the connection-level ReqCountActive property.

(note that this is different from the server-level Throughput... Req column which is based on the server-level Req property)

Throughput... Commits is the rate at which commit requests have been handled by the server for this connection in the previous interval.

Performance Tip: Large Throughput... Commits values may indicate that this connection is placing a heavy load on the database.

Throughput... Commits is based on the connection-level Commit property.

Throughput... Bytes is the rate at which data has been received by and sent by the server across the client server interface for this connection in the previous interval.

Performance Tip: Large Throughput... Bytes values may indicate that this connection is placing a heavy load on the database.

Throughput... Bytes is displayed for target databases running on SQL Anywhere versions 8 and later, and is based on the connection-level BytesReceived and BytesSent properties.


Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 
Locks Held, Conns Blocked, Transaction Time
Locks Held is the total number of locks held by this connection.
Performance Tip: Large numbers of Locks Held are not a problem in themselves; SQL Anywhere is perfectly capable of handling millions of locks being held at one time.
When locks become a problem is when they are held too long and cause other connections to be blocked (prevented) from doing work.

For example, when Locks Held grows large during a period of high activity (high CPU, disk), and then *remains* high for a period of low activity, that may indicate an application flaw where a COMMIT is not issued as soon as it should be.

See also Alert #25 Locks.

The Locks Held value does not include schema locks. For example, if a SELECT statement holds a schema lock that is blocking another connection from executing an ALTER TABLE statement, Locks Held may be empty even though Conns Blocked is 1.

Locks Held is displayed for target databases running on SQL Anywhere 10 and later, and is based on the connection-level LockCount property.

Conns Blocked is the number of other connections that were blocked by this connection.

Performance Tip: Large numbers of blocked connections may indicate a serious performance bottleneck caused by locks being held too long.
The cause may be an application that breaks this fundamental rule of transaction design:
"Never yield control of the mouse or keyboard to the end user while database locks are being held; always do a COMMIT first."

When that rule is broken a long-running transaction is often the result, with those locks preventing other users from getting their work done while the first user decides what to do (or takes a lunch break).

See also Alert #23 Blocked connections and Alert #24 Conn blocking others.

Conns Blocked is based on the connection-level BlockedOn property for target databases running on SQL Anywhere versions 5.5 through 16, and on the connection-level BlockedOn, LockObjectType and LockObjectOID properties for target databases running on SQL Anywhere 17.

Transaction Time is the length of time since the database was first modified by this connection after a COMMIT or ROLLBACK.

Performance Tip: A long Transaction Time may indicate that a long-running transaction is a performance bottleneck.
Note that while it is possible for a SELECT to acquire locks and thus block other connections (e.g., a shared lock obtained by a SELECT will block an ALTER TABLE), a SELECT does not count as a modification as far as the Transaction Time is concerned. In other words, a SELECT does not start a transaction.

See also Alert #28 Long transaction.

Transaction Time is displayed for target databases running on SQL Anywhere 8 and later, and is based on the connection-level TransactionStartTime property.


Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 
Waiting Time, Busy, Wait, Idle

Waiting Time is the total amount of time this connection has been blocked or forced to wait.

Performance Tip: Long waiting times may indicate a serious performance bottleneck caused a lack of resources.

Waiting Time is displayed for target databases running on SQL Anywhere 9 and later, and is based on the sum of the connection-level ReqTimeBlockContention, ReqTimeBlockIO, ReqTimeBlockLock and ReqTimeUnscheduled properties.

The Busy, Wait, Idle columns are intended to give the user a rough idea of what's going on at the connection level. They are displayed as cumulative percentages since login:

The Busy, Wait, Idle columns are displayed for target databases running on SQL Anywhere 9 and later, and are based on the connection-level LoginTime, ReqTimeActive, ReqTimeBlockContention, ReqTimeBlockIO, ReqTimeBlockLock and ReqTimeUnscheduled properties:

   total_time = time since LoginTime
   busy_time  = ReqTimeActive - ReqTimeBlockIO - ReqTimeBlockContention - ReqTimeBlockLock
   wait_time  = ReqTimeUnscheduled + ReqTimeBlockIO + ReqTimeBlockContention + ReqTimeBlockLock 
   idle_time  = total_time - busy_time - wait_time


Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 
CPU, Child Conns
The CPU column shows how much of the overall CPU time available was used by this connection in the previous interval. The percentage is adjusted for the number of CPUs being used by the server.

See also Alert #4 CPU time and Alert #27 Connection CPU.

The CPU % is displayed for target databases running on SQL Anywhere 10 and later, and is based on the connection-level ApproximateCPUTime property and the server-level NumLogicalProcessorsUsed property.

The Child Conns column displays the number of internal child connections that have been started by each primary parent connection.

When a connection makes use of the intra-query parallelism feature, it spawns a number of internal child connections which do most of the work; e.g., one INT: EXCHANGE child connection for each available processor.

Performance Tip: Some versions of SQL Anywhere report the total CPU time used by all the child connections as the ApproximateCPUTime value for each child connection in use, and almost none for the parent connection. This inflates the amount of CPU time used by each child connection without reporting any CPU usage by the parent connection.

In an attempt to make sense of this behavior, Foxhound calculates the average non-zero ApproximateCPUTime for the child connections and reports it as the CPU time for this parent connection. The inflated values reported by SQL Anywhere for each child connection are still shown by Foxhound; only the parent connection CPU time is adjusted.

One consequence of the Foxhound calculations is that the AutoDrop #5 CPU Usage process does apply to parent connections using intra-query parallelism. Note that the AutoDrop process is never performed on a child connection or any other internal connection that isn't directly associated with a client application.

Child Conns is displayed for target databases running on SQL Anywhere 12 and later, and is based on the connection-level ParentConnection property.


Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 
Temp Space, Rollback Log, Uncommitted
Temp Space shows how much temporary space is currently used by this connection.
Temporary pages are used for many purposes, most often to hold intermediate results during query processing. Even if there is no temporary file, as with an in-memory no write database, temporary space is allocated and used by the engine.

Performance Tip: Large amounts of Temp Space may indicate that runaway queries are a performance bottleneck.

To find which connections are using the most temporary file space, click on the Temp Space column heading in the connection section of Foxhound Monitor or History page. That will sort the connections in decreasing order by Temp Space.

To limit the amount of temporary file space any individual connection can use on a target database running on SQL Anywhere version 10 or later, use the MAX_TEMP_SPACE option; e.g., SET OPTION PUBLIC.MAX_TEMP_SPACE = '1G';

See also Alert #21 Temp file usage and Alert #22 Conn temp file usage.

Performance Tip: The term "temporary file" is misleading and it should be renamed "temporary space" because the data may or may not reside in the actual temporary file (which may not exist at all).

Temp Space is displayed for target databases running on SQL Anywhere version 8 and later, and is based on the database-level PageSize property and the connection-level TempFilePages property.

Rollback Log shows how much space in the rollback log is currently used by this connection.

Performance Tip: A large Rollback Log value at the connection level may indicate that a long-running transaction is a performance bottleneck.
Look for confirmation of this in the connection-level Conns Blocked and Transaction Time columns.

See also Alert #32 Rollback log usage.

Performance Tip: The final checkpoint stage of a normal server shutdown may also take a long time while the changes recorded in a large rollback log are being reversed.

RollBack Log is based on the database-level PageSize property and the connection-level RollbackLogPages property.

Uncommitted shows how many operations have been performed by this connection but not yet committed.

Performance Tip: A large number of Uncommitted operations at the connection level may indicate that a long-running transaction is a performance bottleneck.
Look for confirmation of this in the connection-level Conns Blocked and Transaction Time columns.

See also Alert #33 Uncommitted operations and Alert #34 Long uncommitted.

Performance Tip: The count of Uncommitted operations includes (and may be exactly equal to) the number of uncommitted row-level inserts, updates and deletes.

The count of Uncommitted operations may be larger than the number of INSERT, UPDATE and DELETE statements because one statement can affect many rows.

If a single row is inserted, then updated twice and finally deleted, for example, that counts as four Uncommitted operations.

If a single row matches the WHERE clause of an UPDATE statement but all of the new column values in the SET clause are the same as the current values in the row, that row is not updated and the operation is not counted as an Uncommitted operation.

A table-level schema lock obtained by a SELECT statement is not counted as an Uncommitted operation even though the lock is not cleared until a subsequent commit or rollback (and may thus be regarded as "uncommitted").

Uncommitted is based on the connection-level UncommitOp property.


Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 
Low Memory, Cache Satisfaction
Low Memory is the number of times since this connection started that the target server had to change a query execution plan for this connection because cache memory ran low.
Low Memory is displayed for target databases running on SQL Anywhere version 8 or later and is based on the connection-level QueryLowMemoryStrategy property.

Cache Satisfaction is the percentage of times since this connection started that a database page lookup for this connection was satisfied by the cache.

Performance Tip: These conditions may indicate that insufficient memory in the database cache is a performance bottleneck:

Performance Tip: If the computer is dedicated to running this SQL Anywhere server and no other process of importance, consider disabling the automatic cache size tuning process by specifying the -ca 0 and -c options to set a fixed cache size. With a dedicated computer there may be no need for SQL Anywhere to perform extra work changing the cache size up and down.

Performance Tip: A long-running UNLOAD TABLE statement may result in extreme Cache Satisfaction values like 37.74%.

Cache Satisfaction is displayed for target databases running on SQL Anywhere 8 and later, and is based on the connection-level CacheHits and CacheRead properties.


Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 
Time Since Last Request
Time Since Last Request is the elapsed time since the last time a request was started for this connection.
Performance Tip: If this connection is blocked, Time Since Last Request tells you exactly how long it has been waiting.

Performance Tip: A long Time Since Last Request is usually associated with an idle connection, but if the connection is busy (high CPU, high disk activity, etc.) it could mean that some single operation is "stuck" using up resources but not getting anywhere.

Time Since Last Request is based on the connection-level LastReqTime property.


Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 
Current Req Status
Current Req Status shows whether this connection was Idle, Waiting, Blocked or Executing.

Performance Tip: A blocked or waiting connection is a dramatic form of performance bottleneck when it corresponds to an end user who is unable get any work done.

The connection-level Current Req Status is closely related to the database-level Executing, Idle, Waiting Conns columns:

       Foxhound              Foxhound
    Database-Level       Connection-Level                                                     SQL Anywhere 
Executing Idle Waiting  Current Req Status           SQL Anywhere Description                 ReqStatus
----------------------  ---------------------------  ---------------------------------------  -----------------
   Yes      -     -     Executing                    The connection is executing a request.   Executing     

    -      Yes          Idle                         The connection is not currently          Idle              
                                                        processing a request.

    -       -    Yes    Waiting for thread           The connection has work to do and        Unscheduled         
                                                        is waiting for a worker thread.

    -       -    Yes    Waiting for I/O              The connection is waiting for an I/O.    BlockedIO     
      
    -       -    Yes    Waiting for shared resource  The connection is waiting for access to  BlockedContention    
                                                     shared database server data structures.

    -       -    Yes    Blocked by lock              The connection is blocked waiting        BlockedLock
                                                     for a locked row.         

    -       -    Yes    Blocked by mutex             The connection is blocked waiting        BlockedLock (1) 
                                                     for a mutex.         

    -       -    Yes    Blocked by semaphore         The connection is blocked waiting        Executing (2)         
                                                     for a semaphore.

    Note 1: Foxhound ignores the SQL Anywhere connection-level ReqStatus value 'BlockedLock' for a connection 
            blocked by a mutex on a target database running on SQL Anywhere 17.

    Note 2: Foxhound ignores the SQL Anywhere connection-level ReqStatus value 'Executing' for a connection 
            blocked by a semaphore on a target database running on SQL Anywhere 17.

Here's an analogy that doesn't prove anything but might help understanding:

Current Req Status is displayed for target databases running on SQL Anywhere 9 and later.


Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 
Disk/Cache: Internal Index, Leaf, Table
Disk/Cache: Internal Index is the percentage ratio between the number of index internal-node pages that have been read from disk and from the cache for this connection in the previous interval.
Disk/Cache: Internal Index is displayed for target databases running on SQL Anywhere version 7 and later, and is based on the connection-level DiskReadIndInt and CacheReadIndInt properties.

Disk/Cache: Leaf is the percentage ratio between the number of index leaf pages that have been read from disk and from the cache for this connection in the previous interval.

Disk/Cache: Leaf is displayed for target databases running on SQL Anywhere version 7 and later, and is based on the connection-level DiskReadIndLeaf and CacheReadIndLeaf properties.

Disk/Cache: Table is the percentage ratio between the number of table pages that have been read from disk and from the cache for this connection in the previous interval.

Disk/Cache: Table is displayed for target databases running on SQL Anywhere version 7 and later, and is based on the connection-level DiskReadTable and CacheReadTable properties.

The CacheReadTable counter is incremented every time SQL Anywhere tries to read a table page.

The DiskReadTable counter is incremented every time SQL Anywhere can't find the table in the cache and has to read it from disk.

Performance Tip: These conditions may indicate that insufficient memory in the database cache is a performance bottleneck.

Performance Tip: If the computer is dedicated to running this SQL Anywhere server and no other process of importance, consider disabling the automatic cache size tuning process by specifying the -ca 0 and -c options to set a fixed cache size.

With a dedicated computer there may be no need for SQL Anywhere to perform extra work changing the cache size up and down.

Performance Tip: Disk/Cache ratios that are consistently large may indicate that cache thrashing caused by a large database page size is a performance bottleneck.

A smaller database page size may allow important pages to remain in the cache longer rather than being swapped out to disk to make room for different (giant) pages.

Performance Tip: A long-running UNLOAD TABLE statement may result in extreme Disk/Cache: Internal Index, Leaf, Table values like "- / - / 99%".


Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 
Disk Reads, Disk Writes, Log Writes
Disk Reads is the rate at which pages were read from disk for this connection in the previous interval.
Disk Reads is based on the connection-level DiskRead property..

Disk Writes is the rate at which modified pages were written to disk for this connection in the previous interval.

Disk Writes is based on the connection-level DiskWrite property..

Log Writes is the rate at which pages were written to the transaction log for this connection in the previous interval.

Log Writes is based on the connection-level LogWrite property.

Performance Tip: Large Disk Reads, Disk Writes, Log Writes values may indicate that heavy disk I/O is a performance bottleneck.

See also Alert #16 I/O operations.

Performance Tip: Disk Reads and Disk Writes count page-level input and output operations on the SYSTEM, temporary and secondary dbspace files, and Log Writes counts pages written to the transaction log file. Other files are excluded; e.g., non-dbspace files used by LOAD and UNLOAD statements and by xp_read_file() and xp_write_file() procedure calls.


Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 
Index Adds, Lookups, Satisfaction
Index Adds is the rate at which entries were added to indexes for this connection in the previous interval.
Performance Tip: A large Index Adds value may indicate that a large number of row inserts is a performance bottleneck ...or a large number of row updates that are changing index columns.

Index Adds is based on the connection-level IndAdd property.

Index Lookups is the rate at which entries were looked up in indexes for this connection in the previous interval.

Performance Tip: A large Index Lookups value may indicate that heavy index usage is a performance bottleneck ...or just the opposite; heavy index usage is often better than the alternative (frequent retrieval of data pages).

Index Lookups is based on the connection-level IndLookup property.

Index Satisfaction is the percentage of times that an index lookup was satisfied by the index without having to retrieve more information from the table data, for this connection since it started. Index Adds is the rate at which entries were added to indexes for this connection in the previous interval.

Performance Tip: Small Index Satisfaction values (less than 100%) may indicate that low index selectivity is causing a performance bottleneck.
Index selectivity is the ability to locate individual entries within index pages without having to read table pages.

When index selectivity is low it often means

  • SQL Anywhere has chosen the wrong index for a particular query predicate (a rare event but possible),

  • the index design is inadequate for the task of satisfying that query predicate (more likely), and/or

  • the index is fragmented (also possible; see the sa_index_levels() procedure).

To reduce the number of Full Index Comps, determine the SQL query that was running and then use SQL Anywhere's Graphical Plan With Statistics feature to examine index choice and usage.

Note: Index Satisfaction is different from Cache Satisfaction; one compares index and table usage, the other compares memory and disk.

Index Satisfaction is based on the connection-level IndLookup and FullCompare properties.


Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 
Full Index Comps
Full Index Comps is the rate at which additional information had to be obtained from the table data in order to satisfy an index lookup, for this connection in the previous interval.

Performance Tip: Large values of Full Index Comps may indicate that low index selectivity is causing a performance bottleneck.

Index selectivity is the ability to locate individual entries within index pages without having to read table pages.

When index selectivity is low it often means

To reduce the number of Full Index Comps, determine the SQL query that was running and then use SQL Anywhere's Graphical Plan With Statistics feature to examine index choice and usage.

Full Index Comps is based on the connection-level FullCompare property.


Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 
Isolation Level
Isolation Level shows the current isolation level and the updatable statement snapshot isolation level settings for this connection:

Performance Tip: Large values of Full Index Comps may indicate that low index selectivity is causing a performance bottleneck.

Index selectivity is the ability to locate individual entries within index pages without having to read table pages.

When index selectivity is low it often means

  • SQL Anywhere has chosen the wrong index for a particular query predicate (a rare event but possible),

  • the index design is inadequate for the task of satisfying that query predicate (more likely), and/or

  • the index is fragmented (also possible; see the sa_index_levels() procedure).

To reduce the number of Full Index Comps, determine the SQL query that was running and then use SQL Anywhere's Graphical Plan With Statistics feature to examine index choice and usage.

Full Index Comps is based on the connection-level FullCompare property.


Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 
AutoDropped for this reason:
If this connection has been has been dropped by Foxhound's AutoDrop process, an AutoDropped for this reason: message will appear with an explanation; e.g.:
AutoDropped for this reason: #1: This connection has been blocking 1 or more (currently 1) 
   other connections for 5 or more (currently 5) samples

Note that a dropped connection may keep running for a while as SQL Anywhere rolls back its work even though the client application has been disconnected.


Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 
Autodrop Result:
If Foxhound's AutoDrop process dropped or attempted to drop a connection, the Autodrop Result: line will explain whether the attempt was successful or not; e.g.:
Autodrop Result: OK... issued at 2013-12-26 14:35:28.326, processed at 2013-12-26 14:35:28.345

AutoDrop Result: Failed... issued at 2014-02-07 16:30:06.090, failed at 2014-02-07 16:30:06.114: SQLCODE = -660, 
                 SQLSTATE = WO005, ERRORMSG() = Server 'p001': [Sybase][ODBC Driver][SQL Anywhere]
                 Permission denied: you do not have permission to disconnect "29"

Note that a dropped connection may keep running for a while as SQL Anywhere rolls back its work even though the client application has been disconnected.


Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 
Blocked By:
The Blocked By: Conn #, User, OS User, IP, Name line identifies the connection that is blocking this one.

Performance Tip: If the target database is running on SQL Anywhere Version 9 or later, the Blocked By: Conn #, User, OS User, IP, Name columns form a link that opens the Connection History page in a separate browser window or tab. That page will show just this one single connection over time.

See also Alert #23 Blocked connections and Alert #24 Conn blocking others.

Blocked By: Conn # is the connection number of the blocking connection.

Blocked By: Conn # is based on the connection-level BlockedOn property.

Blocked By: User is the SQL Anywhere database user id that was used to make the connection; e.g., DBA.

Blocked By: User is based on the connection-level Userid property.

Blocked By: OS User is the operating system user id associated with the blocking client process.

Blocked By: OS User is displayed for target databases running on SQL Anywhere version 11 and later and is based on the connection-level OSUser property.

Blocked By: IP is the network IP address of the client side of the blocking connection; e.g., 192.168.1.104.

Blocked By: IP is based on the connection-level NodeAddress property.

Blocked By: Name is the connection name of the blocking connection.

Blocked By: Name is based on the connection-level Name property.

Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 
Block Reason:
The Block Reason: line describes the lock that's blocking the connection; e.g.:
Block Reason: Row Transaction Write lock on DBA.t

Block Reason: Row Transaction Intent, Row Transaction Write, Row Transaction WriteNoPK lock on dba.t

Block Reason: Mutex Connection Exclusive lock on dba.test_mutex

Block Reason: Semaphore Connection lock on dba.test_semaphore

The format of Block Reason: depends on the level of detail provided to Foxhound by the target database; for example, only SQL Anywhere 17 supports Mutex and Semaphore locks.

Here are the various layouts used, from high to low levels of detail:

Block Reason: [class] [scope/duration] [type] lock on [owner].[object]
              [class] [scope/duration] [type] lock on [object]
              [class] [scope/duration] [type] 
              Lock on [owner].[object]
              Lock on [object]

                  Fields...
         [class]: Schema, Row, Table, Position, Mutex, Semaphore
[scope/duration]: Transaction, Position, Connection   
          [type]: Shared, Exclusive, Write, ...
         [owner]: object creator
        [object]: table, mutex or semaphore name

Block Reason is based on the sa_locks() procedure, the SYSMUTEXSEMAPHORE table, and the connection-level BlockedOn, LockObjectType and LockObjectOID properties.

See also Alert #23 Blocked connections and Alert #24 Conn blocking others.

Block Reason is displayed for target databases running on SQL Anywhere 7 and later, and is based on


Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 
Locked Row Query:
The Locked Row Query: line displays a SELECT statement you can copy and paste into dbisql to find the row in the target database that is locked; e.g.,
Locked Row Query: SELECT * FROM DBA.t WHERE ROWID ( t ) = 37814272;

See also Alert #23 Blocked connections and Alert #24 Conn blocking others.

Locked Row Query is displayed for target databases running on SQL Anywhere 10 and later, and is based on the sa_locks() procedure.


Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 
Last Statement:
The Last Statement: line displays the last SQL statement received from the client application on this connection, as of the point this sample was recorded:
Last Statement: [Show More] select "COUNT_BIG"() -- 14 seconds from "SYSTAB" as "A" cross join "SYSTABCOL" as "B" c...

If the value is too long to show on one line, click on [Show More]:

Last Statement: [Show Less] 
                select "COUNT_BIG"() -- 14 seconds
                  from "SYSTAB" as "A"
                    cross join "SYSTABCOL" as "B"
                    cross join "SYSUSER" as "C"

Last Statement is displayed for target databases running on SQL Anywhere 8 and later, and is based on the connection-level LastStatement property.


Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections 
Last Plan Text:
The Last Plan Text: line displays the last query execution plan used by this connection, as of the point this sample was recorded:
Last Plan Text: [Show More] ( Plan ( SingleRowGroupBy ( Exchange [ 8 ] ( SingleRowGroupBy ( Nested...

If the value is too long to show on one line, click on [Show More]:

Last Plan Text: [Show Less] 
                ( Plan 
                ( SingleRowGroupBy 
                    ( Exchange [ 8 ]
                      ( SingleRowGroupBy 
                        ( NestedLoopsJoin
                          ( NestedLoopsJoin
                            ( ParallelTableScan ( ISYSUSER su ) )
                            ( TableScan ( ISYSTAB tab ) )
                          )
                          ( TableScan ( ISYSTABCOL col ) )
                        )
                      )
                    )
                  )
                )

Last Plan Text is displayed for target databases running on SQL Anywhere 10 and later, and is based on the connection-level LastPlanText property.


Foxhound 4 » 3. The Monitor Database Page » 3.7 Connections