5.2.12. Operations with the list of connections
5.2.12.1. General information
The list of connections can be displayed:
- For the entire cluster
- For a working process of a cluster
- For an infobase
- For a working process of a cluster server
To display the list of connections for the entire cluster, select a main server in the main server tree and a cluster registered on this server. After that, select and expand the Connections branch.
Fig. 58. Cluster connections
To display the list of connections for a working process of a cluster, select a main server, a cluster, and the Working processes branch. After that, select a working process and expand the Connections branch.
Fig. 59. Working process connections
To display the list of connections for an infobase, select a main server in the main server tree, a cluster, and an infobase. After that, select and expand the Connections branch.
Fig. 60. Infobase connections
To display the list of connections for a working process of a cluster server, select a main server in the main server tree, a cluster, a cluster server, and a working process. After that, select and expand the Connections branch.
Fig. 61. Working process connections
Connections are not displayed in the main server tree. The properties field displays a list of connections that contains the following information:
Infobase
Name of the connected infobase. This field is empty for service connections.
Connection
Connection number. Number of each new infobase connection is incremented by 1. A new connection can only have number 1 assigned if no connections were established to the infobase previously. Number 0 is only assigned to service connections not associated with any infobase. Therefore, both in file and client/server modes, connections are numbered starting from 1 only after all clients, including scheduled and background jobs, disconnect from the infobase.
Session
Session number associated with the connection.
Computer
Network name of the computer that established the connection.
Application
Identifier of the application using this connection.
Server
Name of the connected cluster server.
Server port
Number of the network port of the working process servicing this connection.
Connection start
Time when this connection was established.
If the list of connections is open for an infobase, additional columns are displayed in the properties field, allowing you to quickly analyze database locks. These properties are described in the next section.
5.2.12.2. Viewing connection properties
To view connection properties, select a connection in the connection list and execute the Properties context menu command or the same main menu command of the utility.
Fig. 62. Infobase connection list
This will open the dialog box of connection properties.
Fig. 63. Connection properties
The dialog box of connection properties contains the following information (all connection properties are not editable):
User
User on whose behalf this connection is established.
Computer
Name of the computer that established the connection.
Application
Name of the application that established the connection to the infobase.
Exclusive infobase lock
Indicates that an exclusive infobase lock has been enabled.
Database
Indicates that the connection is established with a database.
Exclusively
Indicates that an exclusive infobase mode is enabled.
Server
Name of the server to which you are connected.
Server port
Network port of the server used for the connection.
Connection start
Time when the connection was established.
Connection
ID of the current connection.
DBMS connection
ID of the database server process. It is displayed if the connection currently performs a database call.
DBMS captured
Duration of database server access at the moment of opening the properties dialog box. It is displayed if the connection currently performs a database call.
DBMS call duration (total)
Total duration of DBMS calls since the beginning of the first call (in seconds).
DBMS call duration (5 min)
Total duration of DBMS calls in the last 5 minutes (in seconds).
DBMS call duration (current)
Duration of the current DBMS call since its start (in seconds).
DBMS data (total)
Amount of data sent over this client connection between 1C:Enterprise server and the database server since the beginning of this session (in bytes).
DBMS data (5 min)
Amount of data sent over this client connection between 1C:Enterprise server and the database server in the last 5 minutes (in bytes).
DBMS locked
ID of the process that locked the process.
Locked
User name (connection number), which is displayed if a process is waiting for a transaction lock to be released.
Call time (total)
Total duration of server calls since the client connection was established (in seconds).
Call time (5 min)
Duration of server calls by this connection in the last 5 minutes.
Call time (current)
Current execution time of the latest incomplete server call.
Number of calls (total)
Total number of server calls made by this connection since it was established.
Number of calls (5 min)
Total number of server calls made by this connection in the last five minutes.
Amount of data (total)
Amount of data sent and received since the connection was established (in bytes).
Amount of data (5 min)
Amount of data sent and received in the last five minutes (in bytes).
Memory (total)
Amount of RAM used for calls since this connection was established (in bytes).
Memory (5 min)
Amount of RAM used for calls in the last 5 minutes (in bytes).
Memory (current)
Amount of RAM used since the current call was initiated (in bytes).
Read from disk (current)
Amount of data read from a hard drive since the current call was initiated (in bytes).
Read from disk (total)
Amount of data read by this session from a hard drive since the connection was established (in bytes).
Read from disk (5 min)
Amount of data read by this connection from a hard drive in the last 5 minutes (in bytes).
Write to disk (total)
Amount of data written by this connection to a hard drive since the session start (in bytes).
Write to disk (5 min)
Amount of data written by this session to a hard drive in the last 5 minutes (in bytes).
Write to disk (current)
Amount of data written to a hard drive since the beginning of the current call (in bytes).
The following properties are available only in the connection list of an infobase and are not displayed in the connection properties.
Call time (current)
Current running time of the cluster service. Name of the service is specified in the Current service property.
Current service
Name of the service that is currently running. If the column is empty, it means that no cluster services are running currently.
Service call time (5 min)
Total running time of all cluster services in the last 5 minutes.
Service call time (total)
Total running time of all cluster services since the beginning of the session.
5.2.12.3. Terminating a connection
To terminate a connection, select the connection in the connection list and execute the Delete context menu command or the same main menu command of the utility.
Fig. 64. Deleting a connection
IMPORTANT. Be careful when you use this feature, since termination of an active user connection might result in a massive data loss.
If a large query to a Microsoft SQL Server database, IBM DB2, or Oracle Database is in progress, 1C:Enterprise server attempts to terminate the connection. The attempt succeeds if the user who is connecting to the database server has the appropriate rights. For more information about the required database user rights, see the documentation for the DBMS you are using. If the connection is terminated successfully, the user will receive the following message: The session is terminated by the administrator. PostgreSQL database connections cannot be terminated. Any termination attempts will have no effect.
If the client runs code on 1C:Enterprise server, 1C:Enterprise server will attempt to disconnect the client application from the server. To terminate a connection, you need the access rights of a server cluster administrator and infobase administrator. If the connection is terminated successfully, the user will receive the following message: The session is terminated by the administrator.
Connection cannot be terminated while 1C:Enterprise server is performing a client call and only one 1C:Enterprise language code line is being executed (except for DBMS calls). For example, a connection cannot be terminated when a long call to a COM object method or an HTTP call is made from code in 1C:Enterprise language.