Tuning Windows Servers for UW/webNetwork Performance

Tuning Windows Servers for UW/webNetwork Performance

We've found over time, that making the following changes to Windows allows for improved performance from Unified Workspace:


Making sure UW is able to listen on the necessary ports by adding exceptions for the Java.exe and webNetwork.exe executables:
  1. Adding UW Java exception to firewall:
    netsh advfirewall firewall add rule name="Allow inbound traffic to webNetwork Java" dir=in edge=yes action=allow program="C:\UnifiedWorkspace\jre\bin\java.exe" enable=yes

  2. Adding webNetwork.exe exception to firewall:
    netsh advfirewall firewall add rule name="Allow inbound traffic to webNetwork.exe" dir=in edge=yes action=allow program="C:\UnifiedWorkspace\bin\webNetwork.exe" enable=yes


The following Registry Keys make sure Windows will clear unused connections faster:
  1. Adding TcpTimedWaitDelay Registry Entry:
    reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v TcpTimedWaitDelay /t REG_DWORD /d 30

  2. Adding MaxUserPort Registry Entry:
    reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v MaxUserPort /t REG_DWORD /d 65534


The following Powershell command will add exclusions to Windows Defender:

  1.  Stoneware folder:
    Add-MpPreference -ExclusionPath "C:\UnifiedWorkspace"

  2. webNetwork.exe process:
    Add-MpPreference -ExclusionProcess "webNetwork.exe"

  3. java.exe process:
    Add-MpPreference -ExclusionProcess "java.exe"


  4. AD-LDS Process (if using LDS):
    Add-MpPreference -ExclusionProcess "dsamain.exe"

  5. ADAM Folder (If using LDS):
    Add-MpPreference -ExclusionPath "C:\Windows\ADAM"

  6. ADAM Data Folder (if using LDS):
    Add-MpPreference -ExclusionPath "C:\Program Files\Microsoft ADAM\UnifiedWorkspace"