Azure SQL Sessions Test

In the database context, the connection between the user process and the server process is called a session. The server process communicates with the connected user process and performs tasks on behalf of the users. The Azure SQL Sessions test is used by an eG agent to track user activity related to the Azure SQL database that is configured for monitoring.

Target of the test : A Microsoft Azure SQL database

Agent deploying the test : A remote agent

Outputs of the test : One set of results for the <Azure SQL database configured for monitoring>:<Name of user logged into the monitored database>

Configurable parameters for the test
Parameters Description

Test Period

How often should the test be executed.

Host

The host for which the test is to be configured.

Port

The port at which the specified Host listens.

Database Name

Specify the name of the Azure SQL database that is to be monitored.

User Name and Password

Against the User Name and Password parameters, specify the credentials of the user who is vested with DBOWNER rights to the configured Database Name.

Confirm Password

Confirm the specified Password by retyping it here.

SSL

If the Azure SQL database service being monitored is SSL-enabled, then set the SSL flag to Yes. If not, then set the SSL flag to No.

Domain

By default, none is displayed in this text box. If the ‘SQL server and Windows’ authentication has been enabled for the Azure SQL database being monitored, then the Domain parameter can continue to be none. On the other hand, if ‘Windows only’ authentication has been enabled, then, in the Domain text box, specify the Windows domain in which the monitored database exists. Also, in such a case, the User Name and Password that you provide should be that of a 'domain user' with DBOWNER rights to the configured Database Name.

IS NTLMv2

In some Windows networks, NTLM (NT LAN Manager) may be enabled. NTLM is a suite of Microsoft security protocols that provides authentication, integrity, and confidentiality to users. NTLM version 2 (“NTLMv2”) was concocted to address the security issues present in NTLM. By default, this flag is set to No, indicating that NTLMv2 is not enabled by default for the target Microsoft Azure SQL database. Set this flag to Yes if NTLMv2 is enabled for the target database.

Detailed Diagnosis

To make diagnosis more efficient and accurate, the eG Enterprise embeds an optional detailed diagnostic capability. With this capability, the eG agents can be configured to run detailed, more elaborate tests as and when specific problems are detected. To enable the detailed diagnosis capability of this test for a particular server, choose the On option. To disable the capability, click on the Off option.

The option to selectively enable/disable the detailed diagnosis capability will be available only if the following conditions are fulfilled:

  • The eG manager license should allow the detailed diagnosis capability

  • Both the normal and abnormal frequencies configured for the detailed diagnosis measures should not be 0.

Measurements made by the test
Measurement Description Measurement Unit Interpretation

Total sessions

Indicates the total number of sessions that are currently open on the database for this user.

Number

A high value may indicate that there is a high load on the database.

Running sessions

Indicates the number of sessions that are currently running on the database for this user.

Number

Use the detailed diagnosis of this measure to know which sessions of the user are currently active on the target database.

Sleeping sessions

Indicates the number of sessions that were idle on the database for this user.

Number

Use the detailed diagnosis of this measure to view the details of sleeping sessions.

Suspended sessions

Indicates the number of sessions initiated by this user on the database were suspended.

Number

Use the detailed diagnosis of this measure to view the details of suspended sessions.

Rollback sessions

Indicates the number of sessions that were rolled back for this user on the database.

Number

Use the detailed diagnosis of this measure to view the details of sessions that were rolled back.

Dormant sessions

Indicates the number of sessions that were dormant for this user on the database.

Number

Use the detailed diagnosis of this measure to view the details of dormant sessions.

Pending sessions

Indicates the number of sessions that were pending for this user on the database.

Number

Use the detailed diagnosis of this measure to view the details of pending sessions.

Blocked sessions

Indicates the number of sessions that were blocked for this user on the database.

Number

Blocking occurs when one session holds a lock on a resource that another session is requesting. As a result, the requesting session will be blocked - it will hang until the holding session gives up the locked resource. In almost every case, blocking is avoidable. In fact, if you find that your session is blocked in an interactive application, then you have probably been suffering from the lost update bug as well, perhaps without realizing it. That is, your application logic is flawed and that is the cause of blocking. Ideally, the value of this measure should be zero.

The detailed diagnosis capability, if enabled, lists all the blocked sessions of this database.