Forum Discussion
TWardrop
Nov 11, 2019Copper Contributor
Memory leak in Remote Desktop Configuration (SessionEnv) service on Domain Controllers
Hi, I've just recently built-up two new Windows Server 2019 domain controllers (fully patched) to replace two older 2012 R2 domain controllers. Both domain controllers suffer the same memory leak...
Seshadrr
Apr 06, 2021Iron Contributor
Check the following script to understand the usage of users per session.
Recommending to set the paging file according to standard best practice.
Note: On a domain controller, its not really require RDS session host service until unless the server exposed for internal users to RDP multiple logons, else use the default 2 session without having the roles on DC
get-wmiobject win32_process |
select @{N='User';E={$_.getowner().user}}, WorkingSetSize |
group user |
select Name, @{N='CPU';E={($_.Group.WorkingSetSize | Measure-Object -Sum).Sum / 1Mb }}
Recommending to set the paging file according to standard best practice.
Note: On a domain controller, its not really require RDS session host service until unless the server exposed for internal users to RDP multiple logons, else use the default 2 session without having the roles on DC
get-wmiobject win32_process |
select @{N='User';E={$_.getowner().user}}, WorkingSetSize |
group user |
select Name, @{N='CPU';E={($_.Group.WorkingSetSize | Measure-Object -Sum).Sum / 1Mb }}