| System maintenance & setup > Web Server maintenance > Optimizing .NET for Chancery SMS > Optimizing server threading configuration

Optimizing server threading configuration

Microsoft recommends that for a system such as Chancery SMS, the administrator adjust the threading configuration for all Web and Application Servers to reduce contention and enable the system to handle application page and functional requests more efficiently. For more information, see the following article available from the Microsoft web site: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/scalenetchapt17.asp.

To adjust the threading configuration on a Web or Application Server:

1 In the folder "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\CONFIG", open the file "machine.config" in Notepad.
= Caution: Before you make any changes, make a backup of the file "machine.config".
2 Set the following values:
= maxconnection: Set to 12 * #CPUs, where #CPUs is the number of physical processors on the server; for example, if the server has 4 CPUs, set to 12*4, or 48. Controls the maximum number of outgoing HTTP connections allowed by the client (in this case, ASP.NET).
= maxIoThreads: Set to 100. Controls the maximum number of I/O threads in the CLR thread pool. This number is automatically multiplied by the number of CPUs by the worker processor.
= maxWorkerThreads: Set to 100. Controls the maximum number of worker threads in the CLR thread pool. This number is automatically multiplied by the number of CPUs by the worker processor.
= minFreeThreads: Set to 88 * #CPUs, where #CPUs is the number of physical processors on the Web or Application Server; for example, if your server has 4 CPUs, set minFreeThreads to 12*4, or 48. This setting is used by the worker process to queue all the incoming requests if the number of available threads in the thread pool falls below the value for this setting. This setting effectively limits the number of concurrently executing requests to maxWorkerThreads - minFreeThreads. If maxWorkerThreads is set to 100, this recommended setting limits the number of concurrent requests to 12.
= minLocalRequestFreeThreads: Set to 76 * #CPUs, where #CPUs is the number of physical processors on the Web or Application Server. For example, if your server has 4 CPUs, set minLocalRequestFreeThreads to 12*4, or 48. This setting is used by the worker process to queue requests from localhost (for example, your Web application sending requests to Web services on the same computer) if the number of available threads in the thread pool falls below this number. This setting is similar to minFreeThreads, but it only applies to requests originating on the local server.

 

= Caution: Change all values as recommended or none.
3 Save the file.
4 Restart the server.

Pearson
Always Learning
www.pearsonschoolsystems.com 
Tel: 866-434-6276
Email: psstechsupp@pearson.com