InIIS
Management ConsoleApplication
Program
Pool
Folder, and right-click the correspondingApplication
Program
Pool
Click properties.Application
Program
Pool
In the following Configuration:
Reclaim
In the recycle tag, you can set the recycle method of the Worker Process:
Recycle Worker Process (minutes): the number of minutes after which the worker runs to recycle the worker process. It is enabled by default and set to 1740 minutes (29 hours );
Reclaim A Worker Process (number of requests): The number of HTTP requests processed by the worker process before terminating the worker process. This is disabled by default. If it is enabled, the default value is 35000;
Recycle a worker at the following time: Recycle the worker at the specified time. disabled by default. To enable it, select the check box and click Add to add the recycle time, use 24 hours to define the time for the rollback;
When too much memory is consumed, recycle the Worker Process:
Maximum virtual memory (MB): The worker process is reclaimed when the virtual memory used by the worker process reaches the set value. The default value is 500 mb if enabled; we recommend that you set it to no more than 70% of the total virtual memory;
Maximum memory used (MB): The worker process is reclaimed when the physical memory used by the worker process reaches the set value. The default value is 192 MB if enabled; we recommend that you set it to 60% of the total physical memory size;
Note that,Application
Program
Pool
There are two ways to recycle working processes, but neither of them will interrupt Web Services:
By default,Application
Program
Pool
Overlap collection is used. In this way, whenApplication
Program
Pool
To shut down a work process, a work process is created first until the new work process is successfully created;
Application
Program
Pool
You can also close the old working process and then create a new working process.
If the WebApplication
Program
You must configureApplication
Program
Pool
Overlapping recycling is prohibited. This configuration cannot be found inIIS
The management console can be modified only by modifying the correspondingApplication
Program
Pool
The disallowoverlappingrotation base attribute of is true.
Performance
In the performance tag, you can set the running mode of the Worker Process:
When idle for this period of time, shut down the working process (minutes): How many minutes after the working process is idle, which reduces the consumption of idle working processes on system resources and CPU performance, enabled by default and set to 20 minutes;
The core Request queue is limited to (number of requests): When an HTTP request sent by a client is receivedApplication
Program
Pool
If the worker process is still busy, the received request is saved in the correspondingApplication
Program
Pool
In the request queue until the worker process is idle. This option is used to set thisApplication
Program
Pool
The number of requests that the request queue can accommodate. By default, eachApplication
Program
Pool
The request queue limit is to retain 1000 requests. If the number of requests exceeds the limit, the system returns the 503 error to the client. You can modify the limit as needed. The maximum value is 65535. However, setting too large will consume a lot of system resources, and setting too small will cause frequent 503 errors during client access.
Enable CPU monitoring: monitor thisApplication
Program
Pool
CPU usage, which is disabled by default.Application
Program
Pool
You can configure this option to limit the CPU usage.Application
Program
Pool
;
Maximum CPU usage (percentage): the configuredApplication
Program
Pool
Maximum CPU usage. The default value is 100 when CPU monitoring is enabled;
Refresh CPU usage (minutes): interval between refresh CPU usage; default value: 5 when CPU monitoring is enabled;
The operation performed when the CPU usage exceeds the maximum usage: WhenApplication
Program
Pool
When the CPU usage exceeds the configured maximum CPU usage, the default value is none when CPU monitoring is enabled.IIS
Logs are recorded in the event log instead of other operations. If you choose to disableIIS
Will close thisApplication
Program
Pool
All worker processes in;
Web Garden: you can configure thisApplication
Program
Pool
The maximum number of worker processes used. The default value is 1, and the maximum value can be set to 4000000. You can use multiple worker processes to increase the number of worker processes.Application
Program
Pool
The performance of the request, but before setting it to use multiple worker processes, consider the following two points:
Every working process consumes system resources and CPU usage. Too many working processes will lead to a sharp consumption of system resources and CPU usage;
Each worker process has its own status data.Application
Program
If you rely on a worker process to save status data, you may not be able to use multiple worker processes.
Running status
You can configureApplication
Program
Pool
Monitors the running status of a working process,
Enable Ping: by defaultApplication
Program
Pool
Configuration
Set to ping the worker process every 30 seconds. When the worker process does not respond, it is deemed that the worker process has a fault and is configured to close the worker process by default. You can modify the ping interval,
Too Long Ping interval may cause web service interruption, while too short Ping interval may consume more system resources and CPU utilization. Therefore, we recommend that you retain the default configuration;
Enable quick failure protection: if the webApplication
Program
If there is a problem with code writing, it may cause continuous problems in the working process. By defaultApplication
Program
Pool
Enable quick failure protection. If the number of failures of a worker in the configured period (5 minutes by default) exceeds the configured value (5 times by default ),Application
Program
Pool
.
Start time limit:IIS
Wait for thisApplication
Program
Pool
When the start time of a worker process exceeds the set value,IIS
Logs are recorded in the event log;
Closing time limit: WhenIIS
When a worker process is detected to be faulty, mark it as disabled. This option specifiesIIS
Wait for the time limit for the Worker Process to automatically close. If the worker process is not closed after the time limit is exceededIIS
Forcibly shut down the working process.
Identifier
In the tag, you can configure the user account that the workflow runs. InIIS
5.IIS
6. RunIIS
5. In the isolation mode, the worker processes run in the local system account, and the worker processes run in the process Isolation Mode.IIS
6. The working process runs under the network service account, which reduces the possibility of system attacks.
You can configure a workflow to run under a predefined local system, local service, or network service account, or use a Custom User Account. We recommend that you use the default network service account. However
For higher security, you can configure a Custom User Account. However, we recommend that you add this user to the iis_wpg user group. Therefore, the iis_wpg user group contains
Minimum permissions for starting and running a working process.
CreateApplication
Program
Pool
To createApplication
Program
Pool
, InIIS
Right-click on the Management ConsoleApplication
Program
Pool
Folder, pointing to new, selectApplication
Program
Pool
;
Then, add a new one in the pop-up window.Application
Program
Pool
Dialog box, inApplication
Program
Pool
Id field inputApplication
Program
Pool
Name, and then choose to use the default settings or inherit the existingApplication
Program
Pool
Set and click OK;
Allocate a Web siteApplication
Program
Pool
Medium
InIIS
Expand the website folder in the console, right-click the corresponding website, and select properties. In the displayed website Properties dialog box, click the Home Directory tab, andApplication
Program
Pool
Select differentApplication
Program
Pool
By defaultApplication
Program
Both names are defaultApplication
Program
If you want to use differentApplication
Program
InApplication
Program
You can modify the name column. For example, here I will change it to winsvr. This is mainly for ease of viewing, and then click OK,
In this caseApplication
Program
The corresponding website is displayed under the pool.Application
Program
.