SOLVED

termsvcs memory hog

%3CLINGO-SUB%20id%3D%22lingo-sub-1184647%22%20slang%3D%22en-US%22%3Etermsvcs%20memory%20hog%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1184647%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20process%20%3CSTRONG%3Etermsvcs%3C%2FSTRONG%3E%20on%20my%20server%20running%20Server%202016%20continues%20to%20be%20a%20memory%20hog.%20We%20were%20consistently%20in%20the%20high%2090%25%20on%20memory%20usage%2C%20so%20I%20got%20rid%20of%20alot%20of%20unnecessary%20programs%20and%20services%20that%20we%20did%20not%20use%20hoping%20that%20would%20fix%20the%20issue.%20However%2C%20we%20continue%20to%20be%20in%20the%20high%2090%25%2C%20as%20%3CSTRONG%3Etermsvcs%3C%2FSTRONG%3E%20continues%20to%20grow%20in%20memory%20usage%20as%20I%20delete%20other%20programs%20and%20services.%20Is%20there%20any%20settings%20for%20%3CSTRONG%3Etermsvcs%3C%2FSTRONG%3E%20to%20help%20with%20memory%20usage%3F%20Thank%20you.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22termsvcs1.png%22%20style%3D%22width%3A%20553px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F172241i730BAA9B3D23834E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22termsvcs1.png%22%20alt%3D%22termsvcs1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1184647%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Ememory%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ERemote%20Desktop%20Services%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eservices%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1184777%22%20slang%3D%22en-US%22%3ERe%3A%20termsvcs%20memory%20hog%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1184777%22%20slang%3D%22en-US%22%3E%3CP%3EMight%20also%20want%20to%20look%20at%20the%20number%20of%20users%20and%20what%20programs%20they%20might%20be%20running.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1184781%22%20slang%3D%22en-US%22%3ERe%3A%20termsvcs%20memory%20hog%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1184781%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F51719%22%20target%3D%22_blank%22%3E%40Dave%20Patrick%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20about%2015%20users%20logged%20into%20the%20server%20remotely%20at%20the%20same%20time.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1184820%22%20slang%3D%22en-US%22%3ERe%3A%20termsvcs%20memory%20hog%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1184820%22%20slang%3D%22en-US%22%3E%3CP%3EMay%20need%20to%20look%20at%20what%20users%20are%20running%2C%20and%20total%20RAM.%20This%20PowerShell%20might%20help.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fstackoverflow.com%2Fquestions%2F46967237%2Fpowershell-script-to-calculate-the-memory-usage-per-user%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3Ehttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F46967237%2Fpowershell-script-to-calculate-the-memory-usage-per-user%3C%2FFONT%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3E%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3E%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1608181%22%20slang%3D%22en-US%22%3ERe%3A%20termsvcs%20memory%20hog%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1608181%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F51719%22%20target%3D%22_blank%22%3E%40Dave%20Patrick%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEven%20after%20I%20removed%20a%20couple%20users%2C%20I%20thought%20that%20would%20help%2C%20but%20then%20%3CSTRONG%3Etermsvcs%3C%2FSTRONG%3E%20just%20takes%20whatever%20extra%20memory%20was%20left%20by%20the%20removed%20users%2C%20so%20my%20server%20is%20still%20at%2096-99%25.%20Anyway%20to%20limit%20%3CSTRONG%3Etermsvcs%3C%2FSTRONG%3E%20from%20taking%20all%20the%20extra%20memory%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1608339%22%20slang%3D%22en-US%22%3ERe%3A%20termsvcs%20memory%20hog%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1608339%22%20slang%3D%22en-US%22%3E%3CP%3ESome%20sizing%20recommendations%20here.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fremote%2Fremote-desktop-services%2Fvirtual-machine-recs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fremote%2Fremote-desktop-services%2Fvirtual-machine-recs%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1608349%22%20slang%3D%22en-US%22%3ERe%3A%20termsvcs%20memory%20hog%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1608349%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F51719%22%20target%3D%22_blank%22%3E%40Dave%20Patrick%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%2015%20users%20logged%20into%20my%20Terminal%20Server%20now.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%221234.png%22%20style%3D%22width%3A%20567px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F214342i89A740818CC2FBC4%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%221234.png%22%20alt%3D%221234.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1608593%22%20slang%3D%22en-US%22%3ERe%3A%20termsvcs%20memory%20hog%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1608593%22%20slang%3D%22en-US%22%3E%3CP%3ESounds%20like%20this%20may%20be%20a%20minimal%20amount%20of%20RAM%2C%20may%20need%20to%20consider%20adding%20more.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1609793%22%20slang%3D%22en-US%22%3ERe%3A%20termsvcs%20memory%20hog%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1609793%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20does%20not%20sound%20right.%3C%2FP%3E%3CP%3EI%20just%20checked%20some%20of%20our%20RD%20Session%20Hosts%20and%20for%2016%20logged%20on%20users%20the%20RAM%20usage%20sits%20at%208GB%20to%209GB%26nbsp%3Bwith%20trmsvcs%20using%20roughly%20350MB%20-%20400MB.%3C%2FP%3E%3CP%3EAll%20Session%20Hosts%20are%20configured%20with%20Windows%20Server%202016%20and%2016GB%20RAM%20each.%20All%20users%20using%20Office%2C%20Browser%20and%20some%20LOB-Apps.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20check%20for%20problematic%20software%2C%20drivers%20or%20configuration.%20If%20you%20are%20using%20a%203rd%20party%20antivirus%2C%20try%20removing%20it%20and%20test%20if%20the%20problem%20goes%20away.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F238560%22%20target%3D%22_blank%22%3E%40Tim%20Hunter%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1610327%22%20slang%3D%22en-US%22%3ERe%3A%20termsvcs%20memory%20hog%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1610327%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F261242%22%20target%3D%22_blank%22%3E%40dretzer%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F51719%22%20target%3D%22_blank%22%3E%40Dave%20Patrick%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20many%20sockets%20and%20virtual%20processors%20do%20you%20have.%20My%20server%20is%20setup%20with%208%20Sockets%20and%2016%20Virtual%20Processors%20with%2048GB%20RAM.%20This%20seems%20like%20way%20too%20much%20%22power%22%20for%20the%20amount%20of%20users%20that%20I%20have.%20My%20users%20mainly%20do%20email%2C%20browser%2C%20and%20a%20couple%20third%20party%20applications%20so%20it's%20not%20overkill.%20Wondering%20if%20there%20is%20somewhere%20else%20I%20can%20look%20for%20a%20%22memory%20leak%22%20or%20a%20bug%20that%20may%20be%20compromising%20my%20resources.%20Thanks%20for%20any%20additional%20feedback%20you%20may%20have.%20I%20appreciate%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Regular Contributor

The process termsvcs on my server running Server 2016 continues to be a memory hog. We were consistently in the high 90% on memory usage, so I got rid of alot of unnecessary programs and services that we did not use hoping that would fix the issue. However, we continue to be in the high 90%, as termsvcs continues to grow in memory usage as I delete other programs and services. Is there any settings for termsvcs to help with memory usage? Thank you.

termsvcs1.png

9 Replies
Highlighted

Might also want to look at the number of users and what programs they might be running.

 

 

Highlighted

@Dave Patrick

 

I have about 15 users logged into the server remotely at the same time. 

Highlighted
Best Response confirmed by Tim Hunter (Regular Contributor)
Solution

May need to look at what users are running, and total RAM. This PowerShell might help.

 

https://stackoverflow.com/questions/46967237/powershell-script-to-calculate-the-memory-usage-per-use...

 

 

 

 

 

Highlighted

@Dave Patrick 

 

Even after I removed a couple users, I thought that would help, but then termsvcs just takes whatever extra memory was left by the removed users, so my server is still at 96-99%. Anyway to limit termsvcs from taking all the extra memory?

Highlighted
Highlighted

@Dave Patrick 

 

I have 15 users logged into my Terminal Server now.

1234.png

Highlighted

Sounds like this may be a minimal amount of RAM, may need to consider adding more.

 

 

 

Highlighted

This does not sound right.

I just checked some of our RD Session Hosts and for 16 logged on users the RAM usage sits at 8GB to 9GB with trmsvcs using roughly 350MB - 400MB.

All Session Hosts are configured with Windows Server 2016 and 16GB RAM each. All users using Office, Browser and some LOB-Apps.

 

I would check for problematic software, drivers or configuration. If you are using a 3rd party antivirus, try removing it and test if the problem goes away.

@Tim Hunter 

Highlighted

@dretzer 

@Dave Patrick 

 

How many sockets and virtual processors do you have. My server is setup with 8 Sockets and 16 Virtual Processors with 48GB RAM. This seems like way too much "power" for the amount of users that I have. My users mainly do email, browser, and a couple third party applications so it's not overkill. Wondering if there is somewhere else I can look for a "memory leak" or a bug that may be compromising my resources. Thanks for any additional feedback you may have. I appreciate it.