User connections check


Job details

Name: User connections check
Platform: Sybase
Category: Performance
Description: Checks the configuration setting for the ‘number of remote connections’ from the master.dbo.syscurconfigs table against the number of connections on the instance (processes with suid != 0 in from the master.dbo.sysprocesses table).
Long description: Checks the configuration setting for the ‘number of remote connections’ from the master.dbo.syscurconfigs table against the number of connections on the instance (processes with suid != 0 in from the master.dbo.sysprocesses table).
Version: 1.2
Default schedule: 2,12,22,32,42,52 * * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘sybase’]/instance[maj_version > ‘12′ & hasengine=‘YES’]

Parameters

Name Default value Description
warning threshold 90 The check will give a warning when the connection pool usage is above this ratio (in %).
alarm threshold 95 The check will give an alarm when the connection pool usage is above this ratio (in %).
keep data for 7 The number of days to keep records.

Job Summary

SELECT config, value FROM master.dbo.syscurconfigs WHERE config=103;
SELECT count(*) FROM master.dbo.sysprocesses WHERE suid != 0;

Job Details

Thresholds Handling

Cleanup Procedures

Implementation Details

Implementation involves creating a history table named user_connections_check_histr and a stored procedure named dbw_user_connections_check. The procedure calculates the number of free and used connections, inserting these values into the history table. It also parses thresholds and decides on the return value appropriate to the current state of the connection pool (0 for normal, 1 for warning, 2 for alarm). Historical records older than the specified "keep data for" period are deleted.

Report Generation

Attribute Details
Title User connections check
Data Parsed Active connections, Free connections, History Date
Presentation Type Table and Color-coded Category Chart

Compatibility Query

Additional Operational Information

This monitoring job is crucial for Sybase database administrators to effectively manage resources and ensure optimal performance by monitoring user connections and reacting proactively when thresholds are approached or exceeded.