Hi,
I have a third party dll that called from some of my WCF services, sitting on iis 10.
This dll used a static variables. So in working MultiThreaded the memory is crushed.
(one thread override the other thread memory).
I dont want to use lock in my code because of performance.
I want to configure the IIS so that each application pool execute multi worker processes
and each process will execute only one thred.
Wich will avoid memory overriding, because every process has is own memory.
What I have tried:
I tried to change the parameter "Thread Per Processor Limit" in
IIS => ASP => Limited Properties , from 25 to 1.
I also increase the parameter "Maximum Worker Processes" in
IIS => Application Pool => My app => Process Model, from 1 to 25.
But actually,
In task manager there is 25 w3wp.exe process but in the "thred" column, I see
about 40 thread to each process.
If someone has explanation for me, I'll be Grateful.
Thanks.