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

cli模式下,已经删除的文件句柄不释放,导致磁盘空间降不下来 #218

Closed
yyz26371945 opened this issue May 28, 2018 · 3 comments
Assignees

Comments

@yyz26371945
Copy link

cli模式下,已经删除的文件句柄不释放,导致磁盘空间降不下来,如下图:
image

@Neeke
Copy link
Member

Neeke commented May 29, 2018

问题收到

@aiwhj
Copy link
Member

aiwhj commented Jun 26, 2018

@yyz26371945
用的是什么版本的 SeasLog?

在常驻 cli 模式下

1.8.4 版本,如果日志文件被删除了,再有新的日志写入的时候会自动释放旧的句柄,然后重新创建文件并写入日志

1.8.4 之前的版本,如果日志文件被删除,不会自动释放旧的句柄,新的日志也无法写入,通过重启 php-cli 进程可以释放旧的句柄并创建新的日志文件

@zhrcoder
Copy link

image
php版本号:7.2.6
seaslog版本号:1.8.4
问题描述:cli模型下seaslog写日志后不会释放文件描述符,如果每小时写一个文件,一天会占用24个描述符,而且日志被压缩为.log.gz后,由于原来的描述符还在,所以不会释放空间。

Neeke added a commit that referenced this issue Sep 2, 2018
Neeke added a commit that referenced this issue Sep 2, 2018
Neeke added a commit that referenced this issue Sep 3, 2018
Neeke added a commit that referenced this issue Sep 3, 2018
Neeke added a commit that referenced this issue Sep 3, 2018
@Neeke Neeke closed this as completed Sep 3, 2018
Neeke added a commit that referenced this issue Sep 3, 2018
Neeke added a commit that referenced this issue Sep 3, 2018
Neeke added a commit that referenced this issue Sep 4, 2018
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

No branches or pull requests

4 participants