- Plesk for Windows
How to manage and monitor CPU/RAM usage per domains in Plesk for Windows?
To restrict CPU/RAM overload for any domain that has a dedicated IIS application pool, log in to Plesk and go to:
Note: Switch on a dedicated IIS application pool to be able to manage these settings.
for a domain:
Domains > example.com > Dedicated IIS Application Pool for Websites
for all new domains that will be created under a Service Plan:
Service Plans > Example Plan > Performance
- for all domains on a server:
1. Connect to the server via RDP
2. Open Windows Command Prompt (CMD) in a Windows server: Right-click the Start charm, and then click Command Prompt (Admin).
3. Run this command to set certain application pool settings (NOTE: this command is just an example, replace parameters with required values (Detailed description for these parameters is available in this guide.):
C:\> for /F "tokens=*" %A in ('plesk bin site -l') do plesk bin subscription.exe --set-iis-app-pool-settings %A -iis-app-pool-turned-on true -cpu-usage-state true -cpu-usage-value 10 -cpu-usage-action Throttle -cpu-usage-interval 5 -max-worker-processes 3 -idle-timeout 5 -managed-pipeline-mode Integrated -recycling-by-time 60 -recycling-by-requests 1000 -recycling-by-virtual-memory 5120 -recycling-by-private-memory 10240
Uncheck Unlimited next to the option Maximum CPU usage (%) and specify your custom value.
Set up an action, which will be taken, when CPU limit is exceeded (Limit action):
Log Only - No action is taken when the CPU limit is exceeded. Only a warning will be written to the Windows Event Viewer (Custom Views > Administrative Events).
Shut Down - The process that exceeds its CPU limit will be forced to shut down. New process will be spawned.
Throttle - Reduce the CPU consumption to the value set for limit. It cannot be exceeded.
Throttle Under Load - Reduce the CPU consumption to the value set for the limit, but only if there are other processes that demand CPU time.
Specify the time, the reset interval for monitoring of CPU usage by worker processes (Limit Interval).
Uncheck Unlimited next to the option Recycling when the maximum amount of private memory is used and specify your custom value.
CPU/RAM usage of every application pool can be tracked in IIS Manager:
Connect to a Plesk server via RDP.
Start Internet Information Services (IIS) Manager at Windows Start > All Programs > Windows Administrative Tools.
In IIS Manager, click SERVER NAME > Worker Processes (IIS section).