Skip to content

Gitea Current Goroutines 1500+ and Spiking Slow Server Response Time #33578

Open
@oDinZu

Description

Description

The Gitea instance jumps around between 60 to 2000+ go routines and was wondering how to limit this? When it jumps to 800, the server load time significantly increases and sometimes the server receives a 502 error.

The server hardware I have Gitea running on has 1CPUs and 2GB of RAM.

Gitea Version

1.23.1 built with GNU Make 4.3, go1.23.4 : bindata, sqlite

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

[W] router: slow GET..
[W] router: failed    GET..
err=runtime error: invalid memory address or nil pointer dereference
/usr/local/go/src/runtime/panic.go:785 (0x4776d1)
/source/modules/web/routing/logger_manager.go:116 (0x1fcac88)
/usr/local/go/src/runtime/panic.go:785 (0x4776d1)
/usr/local/go/src/runtime/panic.go:262 (0x479b38)
/usr/local/go/src/runtime/signal_unix.go:917 (0x479b08)


Screenshots

Image

Git Version

2.25.1

Operating System

Ubuntu 22

How are you running Gitea?

Running Gitea with a binary

Database

MySQL

Metadata

Assignees

No one assigned

    Labels

    issue/duplicateThe issue has already been reported.issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detailtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions