# High CPU load

**URL:** <https://forums.percona.com/t/high-cpu-load/6333>\
**Category:** PMM 1.x\
**Created:** [May 3, 2018, 3:34pm UTC](https://forums.percona.com/t/high-cpu-load/6333 "2018-05-03T15:34:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mthomas](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@mthomas](https://forums.percona.com/u/mthomas)\
**Post date:** [May 3, 2018, 3:34pm UTC](https://forums.percona.com/t/high-cpu-load/6333/1 "2018-05-03T15:34:29Z")

</div>

Hi,

We are seeing high CPU load on a Docker install of PMM latest and the PMM web UI is somewhat sluggish.

I have searched the forum and METRICS\_MONITOR is mentioned on cpu load. Right now we don’t have METRICS\_MONITOR set since memory usage seems to be ok. PMM client network check looks ok.

Currently monitoring 38 RDS nodes, but planning to add a further 60 nodes. So scaling is a concern and slowness on the PMM web interface.

We have the pmm server and client installed on the same VM. This is the first time we have tried this setup, so that may be an issue.

# Some details

- Running on a VM that is dedicated to pmm only. 6 CPU at this time and 15G ram.

- mainly monitoring RDS instances, so using Performance schema and innodb\_monitor\_enable=all

- have pmm client v1.9.1 and server v1.8.1. Note we have the server and client running on the same VM.

- prometheus is using the most CPU

# PMM server container settings

sudo docker run -d   
-p 80:80   
-e METRICS\_RESOLUTION=5s   
-e METRICS\_RETENTION=720h   
-e QUERIES\_RETENTION=20   
–volumes-from pmm-data   
–name pmm-server   
–restart always   
percona/pmm-server:latest

# Have attached files showing

- tail prometheus log
- top output
- sar output
- pmm client network check

Thanks

[tail\_prometheus\_log.txt](https://forums.percona.com/uploads/short-url/cGHZ82AN6Kb8Ht1zArhUam6qj8H.txt) (2.29 KB)

 ![top_output.jpg](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/9/9ef8a47fe44b427890eacb4fc199ffa86b2f81f9.jpeg)

[sar\_ouput\_cpu\_load.txt](https://forums.percona.com/uploads/short-url/vJVOzk4v6C92F8bVF1Ut9kbtKiY.txt) (651 Bytes)

[pmm\_client\_network\_check.txt](https://forums.percona.com/uploads/short-url/dC44ww59mx3gZQqb3HhR7ieiv3k.txt) (792 Bytes)

---

<div class="post-metadata">

**Author:** ![mthomas](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@mthomas](https://forums.percona.com/u/mthomas)\
**Post date:** [May 7, 2018, 11:15am UTC](https://forums.percona.com/t/high-cpu-load/6333/2 "2018-05-07T11:15:23Z")

</div>

Since I am on pmm version 1.8.1, it looks like I do not have to set the METRICS\_MONITOR to control memory usage, since PMM now does memory scaling automatically.

[https://www.percona.com/blog/2018/02/27/percona-monitoring-management-1-8-0-now-available/](https://www.percona.com/blog/2018/02/27/percona-monitoring-management-1-8-0-now-available/)

> [@](#):
>
> By default PMM now automatically scales its use with system size rather than using static amount of memory, unless you explicitly set the maximum value (by using the [METRICS\_MEMORY option](https://www.percona.com/doc/percona-monitoring-and-management/glossary.option.html#term-metrics-memory-option) in Docker, for example).
