Iis7.0 CPU limit

Source: Internet
Author: User

CPU restrictions in IIS:

Limit: 10000 (calculated as percentage * 1000, and 10000 indicates 10%)

Restricted operation: 1. noaction does not operate. 2. killw3wp deletes the process and restarts the new process within the specified time.

Limit interval (minutes): set the time limit, and how long it will take to restart and detect

 

 

 

Reference http://book.51cto.com/art/200908/146156.htm

8.7.2 CPU limit

CPU limit is an easy-to-misunderstand setting. In the first place, this setting seems to be used to set a CPU limit for each application pool, so that the application pool can run normally without consuming too much CPU. However, the actual usage of CPU restrictions is not the case.

With CPU restrictions, we can set the maximum CPU usage in the time frame set by limit interval. If this limit is exceeded, IIS will execute the action set by limit interval. With limit interval, we can choose one of the following two solutions: (1) Do Nothing (no action); (2) Terminate the w3wp process (killw3wp ). If no action is used, a time will be written to the Event Viewer, so that the CPU usage exceeds the upper limit can be recorded, but no other action is taken. If killw3wp is used, as shown in the option name, we need to terminate the application pool Worker Process with over-CPU to prevent other parts of the server from being affected. Then, the system starts a new working process. Therefore, the CPU limit is not used to control the CPU usage of each process, but is a security solution for handling workers with excessive CPU usage. This can prevent workers from occupying the CPU for too long.

The CPU limit is set to one thousand times the CPU usage within the time range defined by limit interval. To calculate the correlation value, we need to multiply the CPU usage by 1000. For example, to set the CPU limit to 60% within five minutes, we can set limit to 60 000 and limit interval to 5. If we set limit to 0, the CPU limit is actually disabled.

Microsoft Windows system resource manager (wsrm) can control the CPU usage and memory usage of each program. To control the CPU usage of IIS, you can use the Windows system resource manager to control the resources of each worker process.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.