Skip to content
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

[Bug] pop.log日志rollingPolicy未开启压缩,导致占用磁盘空间 #8756

Open
3 tasks done
juhuan opened this issue Sep 26, 2024 · 0 comments · May be fixed by #8757
Open
3 tasks done

[Bug] pop.log日志rollingPolicy未开启压缩,导致占用磁盘空间 #8756

juhuan opened this issue Sep 26, 2024 · 0 comments · May be fixed by #8757

Comments

@juhuan
Copy link

juhuan commented Sep 26, 2024

Before Creating the Bug Report

  • I found a bug, not just asking a question, which should be created in GitHub Discussions.

  • I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.

  • I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.

Runtime platform environment

OS:Linux

RocketMQ version

5.3.0

JDK Version

No response

Describe the Bug

broker logback配置不恰当,pop.log未开启日志轮转的压缩,其打日志频率极高,所以很容易占用过多的磁盘空间。未压缩时按照当前配置最多会占用20*128MB=2.5GB空间。

如果gunzip压缩,实测单个128MB的文件可以降到2.1MB,那pop.log占用空间上限=128MB+19*2.1MB=167.9MB

Steps to Reproduce

5.3.0的broker启动一段时间就能复现,otherdays中的日志情况如下:
CleanShot 2024-09-26 at 15 57 45@2x
手动压缩后可以减少不少空间

What Did You Expect to See?

保持和其他日志文件的配置一样

What Did You See Instead?

N/a

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant