Overview
When using the REST API, you may get errors such as the below if you are making many calls at the same time or you have a long running series of calls<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Service Unavailable</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Service Unavailable</h2>
<hr><p>HTTP Error 503. The service is unavailable.</p>
</BODY></HTML>
The issue is that IIS cannot keep up with concurrent calls.
Solution
The below solution will change how many concurrent calls can come from IIS. Please be aware that you may need to update the PowerShell script with the correct app pool version.In PowerShell:
$path = "$env:windir\system32\inetsrv\appcmd"
& $path set config -section:system.webServer/serverRuntime /appConcurrentRequestLimit:"20000" /commit:apphost
$path = "$env:windir\system32\inetsrv\appcmd"
& $path set apppool "M-Files 20.4.8986.4" /queueLength:"10000" /commit:apphost
netsh int ipv4 set dynamicport tcp start=1025 num=64511
Registry Settings:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"TcpTimedWaitDelay"=dword:0x1E
(30s, default = 240)
Restart the proxy/MFWA server after the above instructions.
