内存占用高 #14403

Closed
opened 2025-11-02 11:12:02 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @sxyandapp on GitHub (Apr 23, 2025).

Description

计划从gogs切换到gitea,使用的docker部署方式,部署的 gitea/gitea:1.23.7 镜像,发现内存占用较高(使用docker status命令查看):
gitea内存占用

NAME                CPU %               MEM USAGE / LIMIT     MEM %               NET I/O             BLOCK I/O           PIDS
gitea               0.03%               228.8MiB / 1.795GiB   12.45%              1.42MB / 487kB      235MB / 53.2kB      12

gogs内存占用

NAME                CPU %               MEM USAGE / LIMIT     MEM %               NET I/O             BLOCK I/O           PIDS
gogs                0.00%               49.01MiB / 1.795GiB   2.67%               31.4MB / 52.7MB     17.4GB / 4.45MB     1

是我部署的姿势不对吗

Gitea Version

1.23.7

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

centos

How are you running Gitea?

docker

Database

MYSQL

Originally created by @sxyandapp on GitHub (Apr 23, 2025). ### Description 计划从gogs切换到gitea,使用的docker部署方式,部署的 gitea/gitea:1.23.7 镜像,发现内存占用较高(使用docker status命令查看): gitea内存占用 ``` NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS gitea 0.03% 228.8MiB / 1.795GiB 12.45% 1.42MB / 487kB 235MB / 53.2kB 12 ``` gogs内存占用 ``` NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS gogs 0.00% 49.01MiB / 1.795GiB 2.67% 31.4MB / 52.7MB 17.4GB / 4.45MB 1 ``` 是我部署的姿势不对吗 ### Gitea Version 1.23.7 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System centos ### How are you running Gitea? docker ### Database MYSQL
GiteaMirror added the issue/not-a-bug label 2025-11-02 11:12:02 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Apr 23, 2025):

1.24 (at the moment the main nightly build) saves more than 100MB comparing to 1.23 : Only keep popular licenses #33832

@wxiaoguang commented on GitHub (Apr 23, 2025): 1.24 (at the moment the main nightly build) saves more than 100MB comparing to 1.23 : Only keep popular licenses #33832 * https://dl.gitea.com/gitea/main-nightly/ * https://hub.docker.com/r/gitea/gitea/tags?name=nightly
Author
Owner

@wxiaoguang commented on GitHub (Apr 23, 2025):

A normal Gitea instance (1.24) consumes about 60~100MB memory after startup, it is a little more than gogs, indeed Gitea provides much more features.

Feel free to reopen if there is still any problem.

@wxiaoguang commented on GitHub (Apr 23, 2025): A normal Gitea instance (1.24) consumes about 60~100MB memory after startup, it is a little more than gogs, indeed Gitea provides much more features. Feel free to reopen if there is still any problem.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14403