Managing Isolation and Performance

To help achieve high levels of application availability, you can assign fewer applications to each application pool, as low as one application per application pool. This increases isolation, protecting applications from each other. However, configuring fewer applications per application pool increases the total number of application pools. This results in greater CPU and memory usage, degrading server performance, and resulting in reduced request-processing throughput. The performance impact of...

Migrating the webGarden and cpuMask Attributes

The combination of the webGarden and cpuMask Machine.config attributes provide configuration for ASP.NET on IIS 5.0 for Web gardens. Web gardens are created when there is more than one worker process servicing applications. In IIS 5.0, Web gardens are created for use by all applications running on the Web server. In IIS 6.0, Web gardens are created within each application pool. Web gardens in IIS 5.0 allow ASP.NET to schedule a separate worker process for each microprocessor on a Web server...

Encrypting Confidential Data Exchanged with Clients

Your business needs might require that confidential data be exchanged between the client computers and the Web server. You can help ensure that this information is safeguarded on the network by using encryption. Encryption is a cryptographic process that helps prevent unauthorized users from viewing the encrypted data. Figure 3.6 illustrates the process for encrypting confidential data that is exchanged between client computers and the Web server. Figure 3.6 Encrypting Confidential Data...

Backing Up the IIS Metabase

Metabase backups created with IIS 4.0 or IIS 5.0 cannot be restored on IIS 6.0. As a result, you cannot use any existing metabase backups of the Web server after the upgrade. After you have verified that IIS 6.0 hosts Web sites and applications as it did before the upgrade, back up the metabase before continuing with the upgrade process. The remaining steps in the upgrade process focus on hosting the Web sites and applications in worker process isolation mode. Before changing the IIS...

Request Handling Reliability

For a range of request rates that your applications receive, set goals to achieve the level of overall request handling reliability that you want. Measure only correct requests. Do not consider a request that a client composed incorrectly as a failed request. For example, you can establish a request processing reliability goal of 99.999 for a rate of 20 correctly formed requests per second. You meet this goal when a Web server that receives requests at a rate of 20 per second successfully...

Enable Security Auditing

Microsoft Windows Server 2003 uses security and system logs to store collected security events. Before enabling the system and security logs, you need to enable auditing for the system log and establish the number of events you want recorded in the security log. You customize system log events by configuring auditing. Auditing is the process that tracks the activities of users and processes by recording selected types of events in the security log of the Web server. You can enable auditing...

Global Locks and Overlapped Recycling

Using global locks, configuring files for exclusive read, and other methods of exclusive resource ownership prevent the use of overlapped recycling, or the loading of an application in two application pools simultaneously. Exlcusive ownership requires the use of non-overlapped recycling and the routing of all requests for that application to the same application pool. Also, you can run only one worker process for that application pool, which means that exclusive ownership does not work in a Web...

Create A Sql Server Database for Storing Aspnet Session State

ASP.NET SQL state server is used to manage session state on a computer running Microsoft SQL Server . All versions of Microsoft ASP.NET that are installed on the same computer share the same SQL state server. The SQL state server version of session state that is used is always the one that is installed with the latest version of ASP.NET. When this version of ASP.NET is uninstalled, the latest remaining version on the computer is then registered and used in its place. Credentials Membership in...

Backing Up the Server

Before you change any of the configuration settings on the existing Web server, perform a complete image backup. The purpose of this image backup is to provide a point-in-time snapshot of the Web server. If unforeseen problems occur during the upgrade, you can use this backup to restore the Web server to a known configuration. Important Do not continue with the upgrade process unless you have a successful backup of the entire Web server or you have another Web server that has the same Web sites...

Optimizing Ping Intervals

You can specify a value for the ping interval by examining the potential amount of system resources that can be consumed by unhealthy worker processes over the interval (the default is 30 seconds). Then determine how long you can wait for system resources that unhealthy worker processes are using to be freed so that they are available to other worker processes. If a worker process becomes unhealthy, the client does not receive a response until another worker process is started to replace the...

Managing Aspnet and Request Queue Limit

Recycling worker processes that are serving ASP.NET applications requires that you restart under a request processing load. Starting the new worker processes under a load might cause requests to be rejected because the queue is too full. When this occurs, either increase the queue size limit or disable recycling. For more information about ASP.NET-specific considerations for applications, see Deploying ASP.NET Applications in IIS 6.0 in this book. To improve availability for a Web site or...

Behavior of Aspnet Applications That Are Running in Worker Process Isolation Mode

When IIS 6.0 is configured to run in worker process isolation mode, ASP.NET applications behave as follows The process model within the ASP.NET ISAPI extension is disabled, and ASP.NET applications run using worker process isolation mode in IIS 6.0. In this configuration, the ASP.NET application runs in worker process isolation mode like any other application, such as an ASP application. In addition, IIS 6.0 provides all of the management features such as recycling, health detection, and...

Application isolation settings

Earlier versions of IIS can host Web sites and applications in pooled or isolated process configurations. For information about how to view the current application isolation mode, see View Application Isolation Configuration in IIS Deployment Procedures in this book. If you are running IIS 4.0 on Windows NT Server 4.0, your applications are isolated in one of the following ways In-process running in-process with Inetinfo.exe Isolated running under MTS If you are running IIS 5.0 on Windows 2000,...

Obtain Version of External Module that Runs on IIS and Windows Server

When you select this method for migrating the external module, you need to purchase a version of the external module for Windows. Install and configure the external module on the target server using the documentation that accompanies the external module. For example, if an Apache Web site uses Cold Fusion, you would purchase a version of Cold Fusion for IIS 6.0 and Windows Server 2003. After installing and configuring Cold Fusion on the target server, you might have to adjust the code, such as...

Rewrite the External Module in ASP or ASPNET

Select this method if no version of the external module exists for IIS 6.0 and Windows Server 2003 and you do not have the source code to the external module, or if you want to rewrite the external module to take advantage of the enhanced performance offered by ASP or ASP.NET. You need to evaluate the functions of the external module, draft a functional specification for the external module, and then develop a version of the external module in ASP or ASP.NET. For more information about...

Configure Application Pool Recycling

Internet Information Services IIS can be configured to periodically restart worker processes assigned to an application pool, which recycles faulty Web applications. Recycling keeps problematic applications running smoothly, especially when it is not feasible to modify the application code. Recycling helps ensure that problematic applications do not cause other applications to fail, and that system resources can be recovered from unhealthy applications. Use the Configure Application Pool Health...

Configure Application Isolation Settings for IIS Isolation Mode

Isolating applications means configuring them to run in a process memory space that is separate from the Web server core the core components required to run Internet Information Services IIS , such as IISAdmin, the metabase, and so on and other applications. You can configure applications into one of three levels of application protection Note that server-side includes SSI , Internet Database Connector IDC , and other InProcessISAPIApps applications special applications that must be run in...

To set processor affinity

Copy the following ADSI script into a text editor or word processor. The script written in VBScript enables and configures processor affinity. set pool name ' Set the properties. Enable processor affinity for processors 0,1,2,3 appPoolObj.Put SMPAffinitized, TRUE appPoolObj.Put SMPProcessorAffinityMask, amp H0000000F ' Save the property changes in the metabase appPoolObj.SetInfo WScript.Echo After amp appPoolObj.SMPAffinitized amp , amp appPoolObj.SMPProcessorAffinityMask 2. In the text...

To delete a virtual directory using the lisvdirvbs administration script

In the Run dialog box, type cmd, and then click OK. 2. At the command prompt, use the cd command to change to the directory where the lisvdir.vbs script is installed. The default location for this file is systemroot system32 iisvdir.vbs. 3. At the command prompt, type cscript iisvdir.vbs delete Sample Web Site VirtualDirectoryName. Substitute your Web site name and virtual directory name as appropriate. If there are spaces in the Web site name, use quotation marks around the Web site name,...