Foglight killing sessions in the monitored host is actually a normal process. The database agent will periodically clean up its own idle sessions...
The DBSSSessionCleanerProcessor is the process that does this work, and should be listed with the session ID in the database agent log file like this
2025-03-23 14:50:09.095 ... - The idle DB agent sessions that will be killed are: [[215, 240]]
This DBSSSessionCleanerProcessor, identifies and kills "idle" database agent sessions in SQL Server instances. An "idle" session, is any session that was opened by the database agent but remained open on the server side, even after being closed on the client side (FglAM).
The purpose of this processor is to clean up these orphaned sessions and prevent resource waste. If too many orphaned sessions remain open in a database, it can lead to several problems that can negatively impact the performance and stability of the SQL Server instance.
When a SQL Server host is monitored by two different Foglight agents, running SQL statements for the same collection may compete with one another causing processes to be deadlocked and killed. Since the FMS is designed to avoid duplicate agents being created for the same host unless there are multiple hostnames assigned, this is more common associated with two FMS servers running concurrently monitoring the same host.
Users have the capability to manually kill sessions through the sessions dashboard.
WORKAROUND
Alternatively: attached to this knowledgebase article are two groovy scripts
Users must be logged in to access the attached script
Quest R&D does not recommend turning off this process as it can result in an accumulation of idle processes on the host.
STATUS
Enhancement Request FGSS-I-214 has been logged to add an visible agent status property value to turn off the session cleaner from the Agent Status properties page for the SQL Server agent. This will be reviewed by Product Management for consideration in a future release in Foglight.
Remove any sources of duplicate monitoring of the same host
Instead of granting sysadmin or processadmin roles, it's recommended to use the SQL Server agent grant script to prevent the agent from killing sessions from other users.
Beginning in the 7.3.0 release entries have been included in the Audit log when a session is manually killed using the Activity > Sessions dashboard.
© 2025 Quest Software Inc. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center