Health monitor shows high CPU usage even if only one core is under load

Created:

2017-02-23 12:36:13 UTC

Modified:

2017-08-08 13:18:41 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Health monitor shows high CPU usage even if only one core is under load

Applicable to:

  • Plesk Onyx for Linux

Question

Health monitor shows high CPU usage even if only one core is active from 32 cores. Why do Health Monitor shows usage only for one core and do not differ cores number?

Answer

Plesk Health Monitor is based on collectd and it uses standard plugin "processes" for collectd. The plugin doesn't have any setting to divide CPU usage on a number of CPUs. As a result currently Plesk implementation of such plugin does not detect number of CPUs automatically and the following settings should be updated manually in /usr/local/psa/admin/conf/health-config.xml :

# grep maxvalue /usr/local/psa/admin/conf/health-config.xml | grep Web
      <service name="Web" dbname="processes-Web" monitor="true" maxvalue="1000000">
      <service name="WebProxy" dbname="processes-WebProxy" monitor="true" maxvalue="1000000">

Increase maxvalue parameter as follows number_of_CPU*1000000 to make HealthMonitor display CPU usage correctly, in case of 32 cores it will be 32000000 value.

Plugin description: https://collectd.org/wiki/index.php/Plugin:Processes

Plugin configuration: https://collectd.org/documentation/manpages/collectd.conf.5.shtml#plugin_processes

 

Have more questions? Submit a request
Please sign in to leave a comment.