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

系统使用的日志包有问题 #887

Closed
313988838 opened this issue Jan 11, 2020 · 2 comments
Closed

系统使用的日志包有问题 #887

313988838 opened this issue Jan 11, 2020 · 2 comments

Comments

@313988838
Copy link

版本号:2.1.0
问题描述: @slf4j 这个注解再高并发时会创建多个线程,造成系统宕机.

我们使用了jdk的线程监控工具查询出的

截图&代码:

忘记截图了。修复建议:@log4j2当前日志注解不会创建多个线程。

友情提示: 未按格式要求发帖,会直接删掉。

@galaxist
Copy link

是你们日志配置有问题,写入同一个文件了吧。
或者是专门测试高并发写入造成的,没有现实意义。
日志都能写的系统宕机的话,在那之前数据库早就宕机了。

@zhangdaiscott
Copy link
Member

logback-spring.xml 配置有问题,导致日志未按照日期和大小,生成新文件
下载附件覆盖
logback-spring.zip

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

3 participants