# High CPU usage while idle every few hours for a few hours

**URL:** <https://community.influxdata.com/t/high-cpu-usage-while-idle-every-few-hours-for-a-few-hours/8315>\
**Category:** Systems\
**Created:** [January 27, 2019, 2:49pm UTC](https://community.influxdata.com/t/high-cpu-usage-while-idle-every-few-hours-for-a-few-hours/8315 "2019-01-27T14:49:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![woodendesk](https://avatars.discourse-cdn.com/v4/letter/w/51bf81/32.png) [@woodendesk](https://community.influxdata.com/u/woodendesk)\
**Post date:** [January 27, 2019, 2:49pm UTC](https://community.influxdata.com/t/high-cpu-usage-while-idle-every-few-hours-for-a-few-hours/8315/1 "2019-01-27T14:49:02Z")

</div>

Hey there

InfluxDB has somewhat high CPU usage while idle for a few hours a few times a day. This behaviour started yesterday.

![12](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/7/7ee846ebe32485838a93fd0bf6d3769af273518d.png)

This correlates somehwat with the “InfluxDB Memory Heap” Graph:

 ![00](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/e/e1839805b26058a5056bb75267ebadc544312ddd.png)

And with the “InfluxDB GC activity”,  
 ![24](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/4/4c1621f17e658cca4f48a03b7e2d58b50c4c861a.png)

What’s going on here, why did this start up all of a sudden and what can i do t stop it.  
The only thing i did yesterday was dropping a small database.  
I am running 1.7.3 on debian.

---

<div class="post-metadata">

**Author:** ![woodendesk](https://avatars.discourse-cdn.com/v4/letter/w/51bf81/32.png) [@woodendesk](https://community.influxdata.com/u/woodendesk)\
**Post date:** [January 28, 2019, 3:42pm UTC](https://community.influxdata.com/t/high-cpu-usage-while-idle-every-few-hours-for-a-few-hours/8315/2 "2019-01-28T15:42:23Z")

</div>

It’s getting worse:

![48](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex023/uploads/influxdata/original/2X/9/97cfc2e2c55bcd58a63df0d5feb3de26d51322c3.png)

Edit:

There is a lot of this in the log, repeating over and over again:

| 2019-01-28T19:35:16.483486Z | info | TSM compaction (start) | {“log\_id”: “0DHV0IgW000”, “engine”: “tsm1”, “tsm1\_level”: 1, “tsm1\_strategy”: “level”, “trace\_id”: “0DHVBJ0l000”, “op\_name”: “tsm1\_compact\_group”, “op\_event”: “start”} |
| --- | --- | --- | --- |
| 2019-01-28T19:35:16.483658Z | info | Beginning compaction | {“log\_id”: “0DHV0IgW000”, “engine”: “tsm1”, “tsm1\_level”: 1, “tsm1\_strategy”: “level”, “trace\_id”: “0DHVBJ0l000”, “op\_name”: “tsm1\_compact\_group”, “tsm1\_files\_n”: 8} |
| 2019-01-28T19:35:16.483748Z | info | Compacting file | {“log\_id”: “0DHV0IgW000”, “engine”: “tsm1”, “tsm1\_level”: 1, “tsm1\_strategy”: “level”, “trace\_id”: “0DHVBJ0l000”, “op\_name”: “tsm1\_compact\_group”, “tsm1\_index”: 0, “tsm1\_file”: “/mnt/influx/meta/data/telegraf/autogen/24/000000044-000000001.tsm”} |
| 2019-01-28T19:35:16.483847Z | info | Compacting file | {“log\_id”: “0DHV0IgW000”, “engine”: “tsm1”, “tsm1\_level”: 1, “tsm1\_strategy”: “level”, “trace\_id”: “0DHVBJ0l000”, “op\_name”: “tsm1\_compact\_group”, “tsm1\_index”: 1, “tsm1\_file”: “/mnt/influx/meta/data/telegraf/autogen/24/000000045-000000001.tsm”} |
| 2019-01-28T19:35:16.483941Z | info | Compacting file | {“log\_id”: “0DHV0IgW000”, “engine”: “tsm1”, “tsm1\_level”: 1, “tsm1\_strategy”: “level”, “trace\_id”: “0DHVBJ0l000”, “op\_name”: “tsm1\_compact\_group”, “tsm1\_index”: 2, “tsm1\_file”: “/mnt/influx/meta/data/telegraf/autogen/24/000000046-000000001.tsm”} |
| 2019-01-28T19:35:16.484259Z | info | Compacting file | {“log\_id”: “0DHV0IgW000”, “engine”: “tsm1”, “tsm1\_level”: 1, “tsm1\_strategy”: “level”, “trace\_id”: “0DHVBJ0l000”, “op\_name”: “tsm1\_compact\_group”, “tsm1\_index”: 3, “tsm1\_file”: “/mnt/influx/meta/data/telegraf/autogen/24/000000047-000000001.tsm”} |
| 2019-01-28T19:35:16.485254Z | info | Compacting file | {“log\_id”: “0DHV0IgW000”, “engine”: “tsm1”, “tsm1\_level”: 1, “tsm1\_strategy”: “level”, “trace\_id”: “0DHVBJ0l000”, “op\_name”: “tsm1\_compact\_group”, “tsm1\_index”: 4, “tsm1\_file”: “/mnt/influx/meta/data/telegraf/autogen/24/000000049-000000001.tsm”} |
| 2019-01-28T19:35:16.485575Z | info | Compacting file | {“log\_id”: “0DHV0IgW000”, “engine”: “tsm1”, “tsm1\_level”: 1, “tsm1\_strategy”: “level”, “trace\_id”: “0DHVBJ0l000”, “op\_name”: “tsm1\_compact\_group”, “tsm1\_index”: 5, “tsm1\_file”: “/mnt/influx/meta/data/telegraf/autogen/24/000000051-000000001.tsm”} |
| 2019-01-28T19:35:16.486418Z | info | Compacting file | {“log\_id”: “0DHV0IgW000”, “engine”: “tsm1”, “tsm1\_level”: 1, “tsm1\_strategy”: “level”, “trace\_id”: “0DHVBJ0l000”, “op\_name”: “tsm1\_compact\_group”, “tsm1\_index”: 6, “tsm1\_file”: “/mnt/influx/meta/data/telegraf/autogen/24/000000053-000000001.tsm”} |
| 2019-01-28T19:35:16.487160Z | info | Compacting file | {“log\_id”: “0DHV0IgW000”, “engine”: “tsm1”, “tsm1\_level”: 1, “tsm1\_strategy”: “level”, “trace\_id”: “0DHVBJ0l000”, “op\_name”: “tsm1\_compact\_group”, “tsm1\_index”: 7, “tsm1\_file”: “/mnt/influx/meta/data/telegraf/autogen/24/000000055-000000001.tsm”} |
| 2019-01-28T19:35:19.103643Z | info | Error compacting TSM files | {“log\_id”: “0DHV0IgW000”, “engine”: “tsm1”, “tsm1\_level”: 1, “tsm1\_strategy”: “level”, “trace\_id”: “0DHVBJ0l000”, “op\_name”: “tsm1\_compact\_group”, “error”: “EOF”} |
| 2019-01-28T19:35:20.104037Z | info | TSM compaction (end) | {“log\_id”: “0DHV0IgW000”, “engine”: “tsm1”, “tsm1\_level”: 1, “tsm1\_strategy”: “level”, “trace\_id”: “0DHVBJ0l000”, “op\_name”: “tsm1\_compact\_group”, “op\_event”: “end”, “op\_elapsed”: “3620.546ms”} |
