# pmm-agent load CPU

**URL:** <https://forums.percona.com/t/pmm-agent-load-cpu/33389>\
**Category:** MySQL & MariaDB\
**Tags:** pmm\
**Created:** [September 27, 2024, 6:44am UTC](https://forums.percona.com/t/pmm-agent-load-cpu/33389 "2024-09-27T06:44:43Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![den1a](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/den1a/32/18278_2.png) [@den1a](https://forums.percona.com/u/den1a)\
**Post date:** [September 27, 2024, 6:44am UTC](https://forums.percona.com/t/pmm-agent-load-cpu/33389/1 "2024-09-27T06:44:43Z")

</div>

Hi. The pmm-agent loads the processor heavily. Can you tell me which settings I need to check to solve this problem?

 ![pmm-agent](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/3X/9/8/98cf7372d5f7e4b98c9789c7930b97d026c383ba.png)  
 ![pmm-agent-cpu](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/3X/8/c/8c8ceb50281ce245da3dac872a6f2be733979bab.png)

---

<div class="post-metadata">

**Author:** ![nurlan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/nurlan/32/1523_2.png) [@nurlan](https://forums.percona.com/u/nurlan)\
**Post date:** [September 27, 2024, 8:23am UTC](https://forums.percona.com/t/pmm-agent-load-cpu/33389/2 "2024-09-27T08:23:03Z")

</div>

Hi @den1a, any reason to run that much pmm-agents? I suppose they are conflicting with each other and that’s why generating load. Please kill all of them except 1

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [September 27, 2024, 11:46am UTC](https://forums.percona.com/t/pmm-agent-load-cpu/33389/3 "2024-09-27T11:46:30Z")

</div>

@den1a Are these two screenshots from your PMM Server? If so, then this is typical when you have lots of “Remote MySQL” servers to monitor. Each ‘remote’ monitor will launch its own agent on the PMM server. This is why we recommend a dedicated server for PMM. This is also why we _highly recommend_ that you install the PMM Client Agent on each MySQL server instead of using the remote option.

---

<div class="post-metadata">

**Author:** ![nurlan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/nurlan/32/1523_2.png) [@nurlan](https://forums.percona.com/u/nurlan)\
**Post date:** [September 27, 2024, 11:52am UTC](https://forums.percona.com/t/pmm-agent-load-cpu/33389/4 "2024-09-27T11:52:52Z")

</div>

PMM Server launch agent(mysqld\_exporter, not pmm-agent) per service on the PMM Server, but it doesn’t answer why there is that much pmm-agents running.

---

<div class="post-metadata">

**Author:** ![den1a](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/den1a/32/18278_2.png) [@den1a](https://forums.percona.com/u/den1a)\
**Post date:** [September 27, 2024, 12:17pm UTC](https://forums.percona.com/t/pmm-agent-load-cpu/33389/5 "2024-09-27T12:17:03Z")

</div>

Thank you for the answer. The pmm client is installed on a server with a single site. And only 1 mysql. The persona server is located elsewhere

---

<div class="post-metadata">

**Author:** ![den1a](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/den1a/32/18278_2.png) [@den1a](https://forums.percona.com/u/den1a)\
**Post date:** [September 27, 2024, 12:18pm UTC](https://forums.percona.com/t/pmm-agent-load-cpu/33389/6 "2024-09-27T12:18:15Z")

</div>

Thank you for the answer. I understand that the pmm-client controls the number of processes itself

---

<div class="post-metadata">

**Author:** ![den1a](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/den1a/32/18278_2.png) [@den1a](https://forums.percona.com/u/den1a)\
**Post date:** [September 27, 2024, 12:21pm UTC](https://forums.percona.com/t/pmm-agent-load-cpu/33389/7 "2024-09-27T12:21:23Z")

</div>

![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/3X/0/3/03c52ce9ee102e7896901a47635b573b19c1cbc1.png)

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [September 27, 2024, 12:45pm UTC](https://forums.percona.com/t/pmm-agent-load-cpu/33389/8 "2024-09-27T12:45:22Z")

</div>

Typical PMM agent running on a dedicated mysql host:

 ![Screenshot 2024-09-27 at 7.34.31 AM](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/3X/d/8/d8850b10dd6e581c9ae3fca0b4ca008a42bed09d.png)

Have you tried restarting the agent on this db server?

---

<div class="post-metadata">

**Author:** ![den1a](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/den1a/32/18278_2.png) [@den1a](https://forums.percona.com/u/den1a)\
**Post date:** [September 27, 2024, 12:53pm UTC](https://forums.percona.com/t/pmm-agent-load-cpu/33389/9 "2024-09-27T12:53:27Z")

</div>

![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/3X/d/e/dea6966914e16be1d633197c94208ef62d6f7774.png)

The pmm agent behaves calmly, but every 10 minutes it starts transferring the mysql log to another server and creates a load on the processor. The graph in the first post shows hills every 10 minutes

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [September 27, 2024, 2:05pm UTC](https://forums.percona.com/t/pmm-agent-load-cpu/33389/10 "2024-09-27T14:05:44Z")

</div>

> [@den1a](#):
>
> it starts transferring the mysql log to another server and creates a load on the processor.

Hmm. That does not sound normal. How big is your slow query log file? What is `long_query_time` set on your server?
