apache / apache/iotdb

Constant High CPU Usage

Open
#2,663 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.4k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
115

Description

**Describe the bug**
I have a small IOTDB instance running on Ubuntu. Over time the CPU utilisation is very high even though there are a low number of clients and transactions. The CPU usage appears to climb over time. This system has been running for several weeks without a restart. If I run "ps -ef" I can see that it is IOTDB that is using the CPU constantly.

Below is the CPU usage before and after I ran stop-server/start-server. The CPU dropped from > 80% down to < 10%.

![image](https://user-images.githubusercontent.com/26259049/107284942-5ad4e200-6ac3-11eb-96b1-4e1be546174d.png)

**To Reproduce**
Steps to reproduce the behavior:
1. Run IOTDB 11.0 with default settings

**Expected behavior**
The CPU usage should not be so high.

**Screenshots**
See above.

**Desktop (please complete the following information):**
- OS: Ubuntu 20.04.1 LTS
- Browser Not Applicable
- Version 11.0

**Additional context**
None

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the report with IoTDB 11.0 on Ubuntu 20.04.1 using default settings, then monitor CPU over time and compare it before and after stop-server/start-server. The issue is resolved when the cause of the sustained CPU growth is identified and CPU usage no longer climbs during an extended low-traffic run.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.