Last post Oct 07, 2016 07:18 AM by Chris Zhao
Oct 06, 2016 04:32 AM|neoaguil17|LINK
I have a question, when I use: ConcurrencyMode = ConcurrencyMode.Multiple in wcf
Do I need to change the "max processes" in IIS configuration..
Oct 06, 2016 02:24 PM|deepalgorithm|LINK
Increasing the default value for "Maximum Worker Processes" - creates a "Web Garden", which means that you are configuring an application pool to be supported by multiple worker processes. More here: https://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/659f2e2c-a58b-4770-833b-df96cabe569e.mspx?mfr=true
Increasing this value will allow multiple worker processes to process incoming requests potentially overcoming situations where the ASP.NET thread-pool saturates / blocks, resulting in requests being queued while the single worker process
churns through each request in sequence.
So to answer your question - technically you do not have to increase this value just because you are using ConcurrencyMode.Multiple. Increasing this value helps if you've got some long running process that's blocking the other threads
from running - in which case you might want to consider adding another Worker Process.
Oct 07, 2016 07:18 AM|Chris Zhao|LINK
If you have more than 1 worker process, each worker process will create a service instance. Even if you only have a single worker process, it can use multiple threads. The only advantage of web garden is: If one worker process crashes (possibly due to a
bad request), other worker processes can continue to serve clients.