Users getting randomly disconnected

%3CLINGO-SUB%20id%3D%22lingo-sub-3105384%22%20slang%3D%22en-US%22%3EUsers%20getting%20randomly%20disconnected%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3105384%22%20slang%3D%22en-US%22%3E%3CP%3EOur%20environment%3A%3C%2FP%3E%3CUL%3E%3CLI%3E25-30%20users%3C%2FLI%3E%3CLI%3EWindows%2010%20multi-session%2020H2%3C%2FLI%3E%3CLI%3E2x%20D8s_v3%20as%20session%20hosts%3C%2FLI%3E%3C%2FUL%3E%3CP%3ESome%20of%20our%20users%20are%20getting%20randomly%20disconnected%20from%20our%20desktops%20and%20cant%20get%20back%20in.%20When%20they%20try%20to%20connect%20the%20session%20is%20just%20black%20and%20we%20have%20to%20sign%20them%20out%20from%20the%20portal%2C%20after%20that%20they%20can%20sign%20in%20as%20usual.%20When%20we%20look%20at%20AVD%20insights%20connection%20activity%20browser%20we%20see%20this%20on%20the%20users.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22cloudlaine_0-1643813023842.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F344607i6D390075686A13CD%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22cloudlaine_0-1643813023842.png%22%20alt%3D%22cloudlaine_0-1643813023842.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20load%20on%20our%20session%20hosts%20is%20basically%20CPU%20around%2030%25%20during%20working%20hours%20and%20RAM%20at%2070%25%20so%20there%20are%20some%20good%20margins.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20ideas%20why%20this%20happens%3F%20They%20are%20all%20using%20the%20Windows%20Desktop%20client%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fremote%2Fremote-desktop-services%2Fclients%2Fwindowsdesktop%23install-the-client%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fremote%2Fremote-desktop-services%2Fclients%2Fwindowsdesktop%23install-the-client%3C%2FA%3E)%20and%20some%20of%20them%20have%20updated%20to%20the%20latest%20version%2C%20some%20of%20them%20have%20not.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3107342%22%20slang%3D%22en-US%22%3ERe%3A%20Users%20getting%20randomly%20disconnected%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3107342%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F903618%22%20target%3D%22_blank%22%3E%40cloudlaine%3C%2FA%3E%26nbsp%3BWhat%20policies%20do%20you%20have%20setup%20regarding%20Maximum%20Inactive%20Time%20and%20forced%20disconnect%3F%20From%20a%20troubleshooting%20perspective%20this%20should%20be%20an%20easy%20one%20to%20cross%20off%20the%20list%20of%20potential%20culprits.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Our environment:

  • 25-30 users
  • Windows 10 multi-session 20H2
  • 2x D8s_v3 as session hosts

Some of our users are getting randomly disconnected from our desktops and cant get back in. When they try to connect the session is just black and we have to sign them out from the portal, after that they can sign in as usual. When we look at AVD insights connection activity browser we see this on the users.

 

cloudlaine_0-1643813023842.png

 

The load on our session hosts is basically CPU around 30% during working hours and RAM at 70% so there are some good margins.

 

Any ideas why this happens? They are all using the Windows Desktop client (https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/windowsdeskto...) and some of them have updated to the latest version, some of them have not.

 

 

4 Replies

@cloudlaine What policies do you have setup regarding Maximum Inactive Time and forced disconnect? From a troubleshooting perspective this should be an easy one to cross off the list of potential culprits.  

@Geo Johnson Thank you for your response. Well just to clearify, this happens in the middle of work and not while they are inactive. There are no settings available as far as I know for what you are asking for, and even if there's something I'm not aware of we haven't changed those settings. But, if that would be the case, wouldn't the insights tell us so instead of the memory error?

Microsoft Verified Best Answer

Can you review sizing guidelines to see this is how your environment is designed? AVD VM sizing guidelines 

Sorry for the late reply.

Yes we've done that. Our users are running pretty light applications so according to the docs we are overprovisioned. I mean in a production environment with >20 users, like ours, MS recommend 2 users/vCPU at max for a heavy workload and we're at about 1,6 users/vCPU. And like I said our applications are not even considered to be highly demanding.

And even if that would be the issue, would it really show like this with random disconnects without CPU/RAM/disks beeing at higher load?