1

When running qwinsta I see both connected and disconnected user sessions on a Windows server. I end up cleaning up all the sessions marked with disc just because it seems like good housekeeping.

However, I'm wondering if having many disconnected sessions can cause any issues. For example, can having many disconnected sessions cause a performance issue? Do the disconnected session tie up any server resources?

Volodymyr Molodets
  • 2,404
  • 9
  • 35
  • 52
dtryon
  • 160
  • 3
  • 11

1 Answers1

2

..."can having many disconnected sessions cause a performance issue?"

When you say "many" you can only have a max of 3 remote, interactive sessions (including the console session) on a regular 2008 server (terminal server not included) so we are not talking about a large quantity of sessions. Even so...

"Do the disconnected session tie up any server resources?"

Yes. Anywhere in the range of hardly any resources to almost all of them if the user kicked off a process that uses a lot of CPU and RAM. You should have a resource monitoring system in place to determine resource usage on your servers in general.

In practice, disconnected RDP sessions are not typically a concern (except when you are trying to RDP in and can't because all the remote sessions are in use already...) although it is probably a good practice to clean them up every once in a while. I have never experienced any significant issues due to disconnected sessions, but this depends on your environment too. If you have 20 admins all logging in to your servers and getting disconnected all the time, that could cause issues for other people trying to remote in.

You can control Terminal Services behavior using Group Policy settings - specifically using a combination of the Session Time Limits settings to automatically log off disconnected sessions if they are an issue in your org.

August
  • 3,114
  • 15
  • 17
  • I guess what I was wondering was whether a disconnected session indicates that all user-specific processes are dormant. Or, if a disconnected session could be running orphaned processes. I thought I had seen an issue for resource utilization when there was many disconnected sessions on many VMs across a SAN. – dtryon Feb 05 '13 at 15:15
  • A disconnected session indicates just that. A user connected with a remote interactive session and disconnected from it. You can't derive any process-level info from the fact that there is a disconnected session. RE: VM/SAN issue - I can't think of any reason to believe that disconnected RDP sessions are the cause of any widespread performance issues in that setup. – August Feb 05 '13 at 17:47