How do we configure "WebGarden"?

Tuesday, May 18, 2010


"Web garden" can be configured by using process model settings in "machine.config" or "Web.config" file. The configuration section is named and is shown in the following example. The process model is enabled by default enable="true"). Below is the snippet from config file.


enable="true"
timeout="infinite"
idleTimeout="infinite"
shutdownTimeout="0:00:05"
requestLimit="infinite"
requestQueueLimit="5000"
memoryLimit="80"
webGarden="false"
cpuMask="12"
userName=""
password=""
logLevel="errors"
clientConnectedCheck=”0:00:05"
/>

From the above processModel section for web garden we are concerned with only two attributes "webgarden" and "cpuMask".

webGarden : Controls CPU affinity. True indicates that processes should be affinitized to the corresponding CPU. The default is False.

cpuMask : Specifies which processors on a multiprocessor server are eligible to run ASP.NET processes. The cpuMask value specifies a bit pattern that indicates the CPUs eligible to run ASP.NET threads. ASP.NET launches one worker process for each eligible CPU. If webGarden is set to false, cpuMask is ignored and only one worker process will run regardless of the number of processors in the machine. If webGarden is set to true, ASP.NET launches one worker process for each CPU that corresponds to a set bit in cpuMask. The default value of cpuMask is 0xffffffff.

Use 1 for the processor that you want to use for ASP.NET. Use 0 for the processor that you do not want to use for ASP.NET. For example, if you want to use the first two processors for ASP.NET of a four-processor computer, type 1100.


www.codecollege.NET

LinkWithin

Blog Widget by LinkWithin

Recommended Books