1

Our ASP.NET app uses a component that is licensed by the number of processor cores. Unfortunately, our customer wants to deploy the app onto a multi-function server (IIS, SQL Server, file server, etc.) that exceeds the number of processor cores for which the customer is licensed: they are allowed four cores but have two processors with four cores each. Can I configure IIS to use only one processor?

So I tried to set application pools settings

in applicationpool -> advance setting -> process affinity enable =ture and I have set number of working process =1

After I have checked in task manager w3wp.exe-> set affinity its all core are selected

Where did I make error?

masegaloeh
  • 18,236
  • 10
  • 57
  • 106
temp sun
  • 13
  • 3
  • Limit it to specific processors (cores) using the affinity mask. – Brian Dec 09 '14 at 06:09
  • 1
    Which likely will not help as the licensing component still sees too many processors. A virtual machine may be the only option. Also - check licensing agreements. It is likely this is going to result in an illegal setup and thus a not licensed component. – TomTom Dec 09 '14 at 06:23

1 Answers1

3

Set the affinity mask. By default it is all 1's (run on any core) so you would need to set it to a value with 4 bits set for 4 cores. For example to 15 for processors 0,1,2 and 3. (0xF).

CPU section of application pool settings

Brian
  • 3,476
  • 18
  • 16