Home
Sign Up
Sign In
zqyisasd
V2EX member #341399, joined on 2018-08-15 15:08:30 +08:00
zqyisasd
提问
技术话题
好玩
工作信息
交易信息
城市相关
Per zqyisasd's settings, the topics list is hidden
Deals
info, including closed deals, is not hidden
zqyisasd's recent replies
Oct 26, 2020
Replied to a topic by
zqyisasd
›
Linux
›
清理日志无效
在文件写入比较慢的时候,truncate -s 0 stdout.log 是有效的
Oct 26, 2020
Replied to a topic by
zqyisasd
›
Linux
›
清理日志无效
除了重启进程和使用 rsync,这些可以释放文件。目前测试其他的方法都不好使。使用 rsync 后 java 进程不再向文件输入内容。
Oct 26, 2020
Replied to a topic by
zqyisasd
›
Linux
›
清理日志无效
@
yanqiyu
不只是 ll -h, 文件本身的头部也损坏了。文件在>清空时候,同时有大量新的内容写入,估计造成了这个 bug 。
Oct 23, 2020
Replied to a topic by
zqyisasd
›
Linux
›
清理日志无效
echo > stdout.log 截断日志,即使是日志很小也不能成功。日志写入很慢的开发、测试环境都是正常截断的。因为这个是 java -jar > logs/stdout.log, 所以项目也不能处理这个文件。
Oct 23, 2020
Replied to a topic by
zqyisasd
›
Linux
›
清理日志无效
是的,是进程占用了。重启进程可以解决。不过就是每次都是要重启才能释放,在别的环境没有这种问题。感觉很奇怪。
»
More replies by zqyisasd
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
1014 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 19ms ·
UTC 18:06
·
PVG 02:06
·
LAX 11:06
·
JFK 14:06
♥ Do have faith in what you're doing.
❯