On a Citrix server or a terminal server, if a user disconnects a session without logging out from it, the session exists in the disconnected state. This might cause high memory consumption of the agent service.
To avoid high consumption of memory on the Citrix server, do one of the following:
Ensure that the users log out from a session instead of just disconnecting the session.
Set a time limit to automatically log out from a disconnected session. For detailed information, see the Citrix Support Knowledge Center.