People who manage Internet Information Servers (IIS) know that IIS is a simple and troubled guy. Simple is to install it almost no feet, choose the path, then press "Next" to complete; the configuration is relatively simple, as long as there must be NT and network knowledge, you can set a picture model with the instructions. Large web site comes out. However, managing IIS is not as simple as it is imagined. After using a period of time, the administrator often encounters the unveiled server performance. At this time, IIS performance is optimized, and it will be made.
There are two aspects that lead to poor IIS service performance. One is human, that is, the administrator is not optimized or configured when the administrator is installed. Another objective, with the operation of the service type, and the increase in the number of visitors, the original hardware configuration of the server can no longer meet the requirements, which requires improved hardware configuration.
Optimize IIS performance on server configuration
1. IIS Cache is one of the most important projects to be considered for optimization of IIS. The server retains some memory space as an IIS cache, stores objects for future request, so IIS can retrieve objects from the cache without retrieving from the hard disk. Adjusting the capacity of the IIS cache requires the modification of the registry, the entry is as follows:
/ Hkey_local_machine / system / currentcontrolset / services / inetinfo / parameters / memory range is from 0 4GB, the default is 3072000 (3MB).
IIS enhances the performance of the system through the value of the cache system handle, directory list, and other common data. This parameter indicates the memory size assigned to the cache. If this value is 0, it means "no cache". In this case, the performance of the system may decrease. If your server network communication is busy, there is enough memory space, you can consider increasing this value. It must be noted that after modifying the registry, you need to restart to make the new value take effect.
2. Make IIS to use the processor time longest. The CPU processor capability of the server is always limited. Which application takes up the longest time of the processor, who can get the greatest improvement.
(1) Double-click the system icon in the control panel of the NT.
(2) Click Performance Tags.
(3) Drag the cursor to None at the application performance, so that all the running services, including IIS, with the processor's time to maximum.
3. Server property settings. There is an option that can make the total processing capability of the web application in the server properties, you should of course choose it.
(1) Right-click on the desktop and click the network neighbor icon and select Properties Options.
(2) Click "Service Tag".
(3) Click Server, then press "Properties".
(4) Select the total processing capability for maximizing the network application. Then click "OK."
Improve hardware configuration to optimize IIS performance
When the above optimization configuration is performed, the performance of IIS still has no significant improvement, and maybe you should consider improving the server configuration. However, it is a matter of concern that the bosses will not consent easily unless you use the facts to convince him. You must first improve what hardware configuration is clear. The following is the relevant hardware that needs to be considered when IIS optimization:
Processor: You can upgrade to a faster CPU, you can also add a CPU. But the cost is too high (maybe it will change the motherboard), the boss is difficult to accept.
Hard disk: The hard disk space is used by NT and IIS services as follows: one is simply stored data; the other is used as virtual memory. If you use Ultra2's SCSI hard drive, you can significantly improve IIS performance. Network interface card: If the server is running on the interior of the company, you can consider upgrading his network card to a 100M network card. This is particularly effective in the case where the network bandwidth is a bottleneck.
Memory: Increasement of memory may be the simplest and most effective way to upgrade the system. It is also a hardware upgrade preferred solution recommended by the author. So how do you know how to upgrade your hardware? This is related to the use of performance monitors. The author will describe in other articles. Here is a brief introduction: For example, you can use the Performance Monitor to track the degree of CPU usage on the server. And you can view the number and frequency of the page from the memory to the page in the hard disk. Combining this information with memory usage and other system information, a system performance reportable can be obtained. If this information has always been a high usage, then the hardware device should be upgraded.
Optimizing IIS
In order to avoid the later headache, you should notice the optimization of IIS when installing IIS. such as:
1. In order to improve performance and save resources, you should only run the required protocol. This many administrators have not paid attention, and the author has seen NetBeui, TCP / IP, and IPX protocols simultaneously on a machine that only as a Web service. Obviously this is unreasonable.
2. The IIS server should be set to a stand-alone server, do not allow the server to withstand the extra load required by the domain controller. Imagine: While the server is responsive to the user's login, can I provide IIS service while performance does not fall?
3. You can distribute the NT server's page swap files to multiple physical disks, pay attention to multiple "physical disks", which are ineffective on multiple partitions. Also, don't put the page swap file in the same partition as the Windows NT boot area.
4. Using a disk mirror or disk stripe set can increase the reading performance of the disk.
5. Regarding the log record, file records should be used instead of logging to the ODBC data source. In addition, it is also possible to increase the capacity of the memory buffer to record the log during recording to reduce the activity of the disk. The default capacity value of the buffer is 64KB.
6. It is best to store all the data in a separate partition. The disk defragmentation is then run regularly to ensure that there is no fragmentation in the partition of the storage web server data. Use NTFS to help reduce fragmentation. The author recommends using Norton's SpeedDisk, which can quickly organize the NTFS partition.
7. Although SSL can provide fairly reliable encryption transmission. However, the additional overhead required can cause the IIS server to fall, especially when processing large files. So you should only make SSL encryption on the directory that does need protection.