How to increase the queue length in IIS’s default app pool via command line

application-poolsexchange-2010iis-7threads

I have a farm of IIS servers running Exchange and we are getting this error in HTTP Error:

HTTP/1.1 POST /ews/exchange.asmx - 1 Connection_Dropped_List_Full MSExchangeServicesAppPool

The advice from MSFT is to increase the app pool queue length from 1,000 to 10,000

How do I change IIS's MSExchangeServicesAppPool to a new value via the command line

Best Answer

The correct syntax can be found on IIS.NET site.

To change the queue length you would have to enter:

appcmd.exe set APPPOOL "DefaultAppPool" /add.queueLength:10000

in your case:

appcmd.exe set APPPOOL "MSExchangeServicesAppPool" /add.queueLength:10000

You can list the current configuration settings with:

appcmd.exe list APPPOOL "MSExchangeServicesAppPool" /text:*

Hope this helps.