Ask DOT NET Expert

How do we configure "WebGarden"?

The process model configured the "Web garden" settings in the "machine.config" or in the "Web.config" file. The configuration section is named as and is shown  below in the following example. This 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"

/>

The processmodel section above for the web garden, we are concerned with only two attributes namely "webgarden" and "cpuMask".

WebGarden :- The webgarden Controls the CPU affinity. The True indicates that the processes should be affinitized to the corresponding CPU. Therefore the default is False.

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

The main steps of how to implement web garden are as follows:

  • At first click the Start button and then click Run.
  • Now Type calc.exe and then click OK.
  • After that go to the View menu, & click the Scientific.
  • Then Go to the View menu, & click the Binary.
  • Then Use 0 and 1 to specify the processors ASP.NET can or cannot be use.

Now Use 1 for the processor that you want to use for the ASP.NET. And Use 0 for the processor that you do not want to use for the ASP.NET. For e.g., if you want to use the first 2  processors for the  ASP.NET of a 4-processor computer, type 1100.

1)On the View menu, click the Decimal. Note the decimal number and keep in mind.

2)Open the Web.config or machine.config file in a text editor like  Notepad. The Web.config file is located in a  folder where the application is saved.

3)In the Web.config file, add the processModel configuration element under the System.web element. Now Before adding to Web.config file, the user  has to make sure that the allow Definition attribute in the section of the Web.config file is fixed  to everywhere.

4)Add and set the webGarden attribute of the processModel element to True.

5)Add and set the cpuMask attribute of the processModel element to the result that is determined in your calculation.

enable="true" webGarden="true" cpuMask="12" />

DOT NET, Programming

  • Category:- DOT NET
  • Reference No.:- M9508904

Have any Question?


Related Questions in DOT NET

Assignment specificationthis assignment is split into two

ASSIGNMENT SPECIFICATION This assignment is split into two documents. 1. Assignment Specification. This document contains the specification for what you will be required to do. 2. Assignment Addendum. This document conta ...

Scenariouser modelling inc would like to organize a series

Scenario User Modelling Inc. would like to organize a series of conferences focusing on research topics in the area of user adaptive systems and personalization. They need to organize annual conferences for researchers a ...

Casewe sell pdfs from our site and pdfs can be ordered from

Case We sell pdf''s from our site and pdfs can be ordered from the site by selecting a book, putting it in a shopping cart, then signing in with a password or as a guest, and then checking out. For some reason, when a pu ...

Summarythis assessment requires you to develop a simple

Summary This assessment requires you to develop a simple text editor with a basic offline user login. It is a windows application that will allow new uses to be added, existing users to login, and to create/save/edit tex ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As