Open Syize opened 1 week ago
Could be be the bleve indexer, see https://github.com/go-gitea/gitea/issues/31565 and try disabling it via REPO_INDEXER_ENABLED = false
.
set REPO_INDEXER_ENABLED = false
doesn't help.
set
REPO_INDEXER_ENABLED = false
doesn't help.
I set REPO_INDEXER_ENABLED = false
and observed Gitea for a few days. This issue won't happen even Gitea has run 1-2 days, but it happens after system reboot, and the change of system time seems to be one of the causes triggering this problem.
Sometimes I switch to Windows to play games and then switch back to Arch Linux. Because of the different ways Windows and Linux handle the hardware clock (its a normal issue), the system time in Linux is 8 hours ahead(because I'm in UTC+8 timezone), and Linux will update system time as soon as it connect to Internet. I found this issue occurs immediately after system time update. Restart gitea manually could calm Gitea down.
As for Gitea's log, I have changed log level to trace
, but Gitea doesn't output any additional information in log/gitea.log
.
Description
Hi,
Recently I've been troubled by the issue of high CPU consumption of Gitea. The CPU consumption often become very high after running about 10 hours, and restart gitea can temporally solve this problem.
The most suspicious behavior of gitea during high CPU consumption is frequent GC. I have taken a screen record when cpu consumption becomes high.
https://github.com/user-attachments/assets/da2e4e8a-bf8c-468d-8a60-8f7b8a6dfaa4
After restarting Gitea, GC seems "calm down".
Here is the log of gitea (Though I can't find any related information.)
Gitea Version
1.22.1
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.46.0
Operating System
Arch Linux
How are you running Gitea?
I install the latest gitea from Arch Linux repo
and make it a system service by using systemd
Database
MySQL/MariaDB