[환경]

Windows2012 R2 Remote Desktop Session Host



[이슈사항]

Windows2012 R2 Remote Desktop Session Host 올린이후 Jeus 성능이 현저히 낮아지는 증상이 나타남.


1. Remote Desktop Session Host 역할이 서버에 설치되면 예를 들어, 특정 Application에서 File Write System 프로세스의 Worker 쓰레드에서 이를 처리하게 되는데 다음 화면의 Call Stack과 같이 이 과정에 TSFairShare.sys 드라이버가 관여하게 됩니다.


2. 이는 Remote Destkop Session Host 역할이 설치됨으로써 Resource 대한 Fair Share 기능이 추가되기 때문입니다. 기능은 2008 R2부터 도입이 되었고 이름 그대로 여러 Remote Session 사용할 특정 Session에서 Resource(CPU, Disk, Network) 사용량에 대해 조절하게 됩니다.

  1. Network Fairshare Dynamically distributes available bandwidth across sessions based on the number of active sessions to enable equal bandwidth utilization.
  2. Disk Fairshare Prevents sessions from over utilizing disk usage by equal distribution of disk I/O among sessions.
  3. CPU Fairshare Dynamically distributes processor time across sessions based on the number of active sessions and load on these sessions. This was introduced in Windows Server 2008 R2 and has been improved for heavier loads in Windows Server 2012.


[해결방안]


1. CPU Fair Share

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Quota System 하위에 있는 EnableCPUQuota 값을 0으로 변경

 

2. Network Fair Share

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TSFairShare\NetFS 하위에 있는 EnableFairShare 값을 0으로 변경

 

3. Disk Fair Share

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TSFairShare\Disk 하위에 있는 EnableFairShare 값을 0으로 변경


끝.


+ Recent posts