Skip to content

内存占用高 #34271

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sxyandapp opened this issue Apr 23, 2025 · 2 comments
Closed

内存占用高 #34271

sxyandapp opened this issue Apr 23, 2025 · 2 comments
Labels
issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea

Comments

@sxyandapp
Copy link

sxyandapp commented 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

@wxiaoguang
Copy link
Contributor

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

@wxiaoguang wxiaoguang added issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea and removed type/bug labels Apr 23, 2025
@wxiaoguang
Copy link
Contributor

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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea
Projects
None yet
Development

No branches or pull requests

2 participants