Articles in this section

How to manage and monitor CPU/RAM usage per domains in Plesk for Windows Server

Plesk for Windows kb: how-to

Applicable to:

  • Plesk for Windows

Question

How to manage and monitor CPU/RAM usage per domains in Plesk for Windows?

Answer

 

Managing CPU/RAM usage in Plesk

 

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

 

Managing CPU

  1. Uncheck Unlimited next to the option Maximum CPU usage (%) and specify your custom value.
  2. Set up an action, which will be taken, when CPU limit is exceeded (Limit action):
    1. 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).
    2. Shut Down - The process that exceeds its CPU limit will be forced to shut down. New process will be spawned.
    3. Throttle - Reduce the CPU consumption to the value set for limit. It cannot be exceeded.
    4. 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.
  3. Specify the time, the reset interval for monitoring of CPU usage by worker processes (Limit Interval).


    Screenshot_2020-09-08_IIS_Application_Pool_example_com_domain__pool__-_Plesk_Obsidian_18_0_29.png
     

 

Managing RAM

  • Uncheck Unlimited next to the option Recycling when the maximum amount of private memory is used and specify your custom value.


    Screenshot_2020-09-08_IIS_Application_Pool_example_com_domain__pool__-_Plesk_Obsidian_18_0_29_1_.png
     

Monitoring CPU/RAM usage in IIS Manager

 

CPU/RAM usage of every application pool can be tracked in IIS Manager:

  1. Connect to a Plesk server via RDP.
  2. Start Internet Information Services (IIS) Manager at Windows Start > All Programs > Windows Administrative Tools.
  3. In IIS Manager, click SERVER NAME > Worker Processes (IIS section).


    1.PNG
     

 

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

 

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.