# Continuous CPU use when no one connected

**URL:** <https://forum.gitea.com/t/continuous-cpu-use-when-no-one-connected/3413>\
**Category:** General\
**Created:** [June 25, 2021, 8:24am UTC](https://forum.gitea.com/t/continuous-cpu-use-when-no-one-connected/3413 "2021-06-25T08:24:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![chmike](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/chmike/32/1331_2.png) [@chmike](https://forum.gitea.com/u/chmike)\
**Post date:** [June 25, 2021, 8:24am UTC](https://forum.gitea.com/t/continuous-cpu-use-when-no-one-connected/3413/1 "2021-06-25T08:24:42Z")

</div>

I have a gitea instance with only one private user, me.  
I’m doing nothing, I wasn’t even connected (timed out) and gitea consumes up to 1% of the CPU (top).  
There is not opened tcp connection. Is it possible to know what gitea is doing ?

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [July 1, 2021, 3:37pm UTC](https://forum.gitea.com/t/continuous-cpu-use-when-no-one-connected/3413/2 "2021-07-01T15:37:23Z")

</div>

Hi, if you have posted this on github. Could we close this one?

---

<div class="post-metadata">

**Author:** ![chmike](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/chmike/32/1331_2.png) [@chmike](https://forum.gitea.com/u/chmike)\
**Post date:** [July 2, 2021, 4:29am UTC](https://forum.gitea.com/t/continuous-cpu-use-when-no-one-connected/3413/3 "2021-07-02T04:29:49Z")

</div>

Hello, I didn’t posted this question on github.  
Can’t I have an answer here ?

---

<div class="post-metadata">

**Author:** ![dachary](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/dachary/32/4990_2.png) [@dachary](https://forum.gitea.com/u/dachary)\
**Post date:** [July 3, 2021, 4:53am UTC](https://forum.gitea.com/t/continuous-cpu-use-when-no-one-connected/3413/4 "2021-07-03T04:53:53Z")

</div>

As a system administrator I would not be too concerned by a process that shows 1% CPU usage in top. I would be interested to see a Gitea dashboard that shows what it is up to but I don’t think that exists. It does not exist in GitLab either, AFAIK.

That’s not very helpful, but here it is 🙂

---

<div class="post-metadata">

**Author:** ![tuaris](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/tuaris/32/4967_2.png) [@tuaris](https://forum.gitea.com/u/tuaris)\
**Post date:** [July 6, 2021, 1:24am UTC](https://forum.gitea.com/t/continuous-cpu-use-when-no-one-connected/3413/5 "2021-07-06T01:24:51Z")

</div>

I’ve seen this too, but it’s not specific to Gitea. This seems to be a general problem with Golang.

---

<div class="post-metadata">

**Author:** ![chmike](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/chmike/32/1331_2.png) [@chmike](https://forum.gitea.com/u/chmike)\
**Post date:** [July 6, 2021, 7:34am UTC](https://forum.gitea.com/t/continuous-cpu-use-when-no-one-connected/3413/6 "2021-07-06T07:34:50Z")

</div>

Not sure. I have another golang web site that I made my self and it doesn’t use CPU.  
It is very simple though and doesn’t have a database. What I mean is that it isn’t golang’s fault.  
There must be some active go routines that are specific to the gitea application. I’ll post an issue in gitea github.

EDIT: found an existing issue reporting the high CPU usage when idle: [High Idle CPU usage (fresh install) · Issue #15542 · go-gitea/gitea · GitHub](https://github.com/go-gitea/gitea/issues/15542)

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [November 4, 2021, 1:10pm UTC](https://forum.gitea.com/t/continuous-cpu-use-when-no-one-connected/3413/7 "2021-11-04T13:10:27Z")

</div>

Is this still a problem?
