Monitor Graphical User Interface
The Monitor graphical user interface (GUI) is a 32-bit Windows application that runs on Windows 32-bit and 64-bit platforms.
Monitor provides a “snapshot” of server activity at a point in time. How recent the snapshot is depends on the interval for the refresh rate. The default is every four seconds. See Setting Monitor Options for how to set the refresh rate.
Starting Monitor
Access Monitor from the operating system Start menu or Apps screen or from the Tools menu in Pervasive PSQL Control Center.
Monitor connects to the local database engine by default. However, you can also monitor resources of a remote database engine by connecting to a remote server.
1
You cannot connect to a remote server if dialogs are open.
2
Click Connect from the Options menu. The Connect to Remote Server dialog displays.
3
4
Type a user name and password for that server in the User Name and Password fields, respectively.
To be authenticated, the user specified must have full administrator-level rights on the machine where the database engine is running or be a member of the Pervasive_Admin group on that machine.
5
1
You cannot disconnect from a server if dialogs are open.
2
Click Disconnect from the Options menu.
3
Click Yes.
Setting Monitor Options
1
Click Settings from the Options menu. The Monitor Settings dialog displays the current settings.
2
 
3
Click OK to save the settings.
Monitoring Transactional Interface Resources
This section describes the following options for monitoring the transactional interface (MicroKernel):
Setting Dialog Refresh Options
You can refresh the information in Monitor dialogs either automatically or manually, as follows.
Automatically: select the Automatic Refresh option. The utility updates the dialog at the Refresh Rate specified in the Monitor options (see Setting Monitor Options).
Viewing Active Files
Click Active Files from the MicroKernel menu. The MicroKernel Active Files dialog displays and shows all of the files currently open by the MicroKernel.
Figure 5 Active MicroKernel Files Dialog
Files List
In the upper left of the dialog, Monitor displays the list of Active MicroKernel Files. This scrollable list contains the complete path of all open files in alphabetic order.
1
2
Note that Monitor uses kilobytes (KB) for the size of an individual file and megabytes (MB) as the units for resource usage (Viewing Resource Usage). License Administrator uses gigabytes (GB) as the units because that is how data in use is associated with a key. The different contexts require units appropriate for each context.
 
File Handles List
In the upper right of the MicroKernel Active Files dialog, Monitor displays the list of Selected File’s Handles. This scrollable list contains the active handles associated with the selected file. Each handle is represented by a name (typically the login ID of the user), or by an index into the Client list of the database engine.
1
2
If the calling process is TCP/IP, the address is preceded by T: such as T: 180.150.1.24,
T: 1234:5678:0000:0000:0000:0000:9abc:def0, or
T: <mymachine.mydomain.mycompany>.com.
Monitor also specifies all open modes as non-transactional or shared locking when applicable.
 
Viewing Session Information
You can view a list of current sessions and files, as well as file handles for each session. A “session” is defined as a client ID used by the transactional engine interface or a connection to the relational engine interface. “Client ID” is defined as a 16-byte structure that combines elements provided by the application, by the client platform, and by the database engine to uniquely identify a database transaction context.
Note that the session information reflects the sessions established through the transactional interface and through the relational interface. (If you want to view sessions established only through the relational interface, see Viewing SQL Active Sessions.)
Click Active Sessions from the MicroKernel menu. The MicroKernel Active Sessions dialog appears.
Figure 6 Active MicroKernel Sessions Dialog
Sessions List
In the upper left of the dialog, Monitor displays the list of Active MicroKernel Sessions. This scrollable list contains the names of active sessions in alphabetic order. Each session is represented by a name (typically the login ID of the user) or by an index into the Client list of the database engine.
1
2
If the calling process is TCP/IP, the address is preceded by T: such as T: 180.150.1.24,
T: 1234:5678:0000:0000:0000:0000:9abc:def0, or
T: <mymachine.mydomain.mycompany>.com.
 
Session File Handles
In the upper right of the dialog, Monitor displays the Selected Session’s Handles list. This scrollable list contains the active file handles associated with the selected session. The MicroKernel creates a handle each time a session opens a file. A single session can have several handles for the same file.
1
2
 
Deleting Current Sessions
Deleting a current session removes the session from the list of active sessions and terminates the session’s connection to the database engine. All open files for the session are closed and all allocated resources are freed.
*Caution: Deleting a current session can result in incorrect data, incomplete records or aborted transactions depending on the what processing is currently occurring.
1
2
Click Delete Current Session to delete the selected session.
Click Delete All Sessions to delete all of the current sessions.
Viewing Resource Usage
Click Resource Usage from the MicroKernel menu. The MicroKernel Resource Usage dialog box displays.
Figure 7 MicroKernel Resource Usage Dialog
 
This dialog displays the resources in use by the MicroKernel since it was last started. The MicroKernel Uptime lists the amount of time in weeks, days, hours, and minutes that the MicroKernel has been running.
The dialog shows the following statistics for each resource:
The database engine dynamically controls the maximum values for some of these resources. The maximum value for User Count, Session Count, and Data In Use depends on the product license. See License Models in Pervasive PSQL User's Guide.
If a resource does not apply to the type of Pervasive PSQL product being monitored, “n/a” (“not applicable”) appears for each statistic. For example, “User Count” does not apply to Pervasive PSQL Vx Server. Therefore, “n/a” appears as the Current, Peak, and Maximum value for “User Count” if Pervasive PSQL Vx Server is being monitored. Similarly, “n/a” appears as the Maximum value for “Session Count” and “Data in Use MB” if Pervasive PSQL Server is being monitored.
However, if you are considering using Pervasive PSQL Vx Server, you need the ability to estimate Current and Peak values for “Session Count” and “Data in Use MB”; consequently, those statistics are displayed for the PSQL Server without being enforced. No notifications are sent about them regardless of their values.
Usage information is displayed for the following resources.
Viewing Communications Statistics
Click Communications from the MicroKernel menu. The MicroKernel Communications Statistics dialog displays.
Figure 8 MicroKernel Communications Statistics Dialog
 
 
This dialog displays communications statistics for the database engine since the last time the MicroKernel was started. The MicroKernel Uptime lists the amount of time in weeks, days, hours, and minutes that the MicroKernel has been running.
Where applicable, the dialog shows the following statistics for a resource:
You can monitor the activity of the following communications resources.
Delta – Indicates the number of requests since you invoked the Communications Statistics dialog. To reset this number to zero, click Reset Delta.
Delta – Indicates the number of requests since you invoked the Communications Statistics dialog. To reset this number to zero, click Reset Delta.
Delta – Indicates the number of requests since you invoked the Communications Statistics dialog box. To reset this number to zero, click Reset Delta.
Delta – Indicates the number of requests since you invoked the Communications Statistics dialog. To reset this number to zero, click Reset Delta.
Delta – Indicates the number of requests since you invoked the Communications Statistics dialog. To reset this number to zero, click Reset Delta.
Delta – Indicates the number of requests since you invoked the Communications Statistics dialog. To reset this number to zero, click Reset Delta.
Monitoring Relational Interface Resources
This section describes monitoring of the relational interface.
Viewing SQL Active Sessions
The SQL active sessions displays only sessions established through a connection to the relational interface. To view all sessions—whether established through the transactional interface or through the relational interface—see Viewing Session Information.
Click Active Sessions from the SQL menu. The SQL Active Sessions dialog displays.
Figure 9 SQL Active Sessions Dialog
 
SQL Session Information
The Active Sessions label at the top of the dialog displays the number of SQL active sessions. The User Name box displays the list of user names connected to the database engine. User Name is set by default to the Windows login ID. If this is unavailable, User Name is set to “unknown.”
Additional information about the selected User Name is provided in the Session Information box.
1
Click Refresh Session List.
2
Another method is to ensure that the Automatic Refresh option is selected and wait for the refresh rate to activate the refresh. See To configure Monitor options.
1
2
Click Delete Session.
If a large SQL block is being processed by an active session when you delete the session, the session may have a temporary connection status of “Dying.” The session should disappear from the dialog when the database engine reaches an appropriate termination point.
*Caution: Deleting an active session can result in incorrect data, incomplete records or aborted transactions depending on the what processing is currently occurring.