-
Notifications
You must be signed in to change notification settings - Fork 370
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
log4js.json 添加新的日志文件,导致提示MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 SIGHUP listeners added. Use emitter.setMaxListeners() to increase limitError #62
Comments
有空的话请把你的修改和问题描述清楚一点。明天帮你分析分析。 |
{ |
{ |
[2019-02-12T11:35:20.593] [ERROR] logger - [adminConnector-server-1 console] (node:16316) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 SIGHUP listeners added. Use emitter.setMaxListeners() to increase limitError 这是报错的堆栈 |
把我加的那两个日志配置删除,启动就不会报上面的错 |
这个是 log4js的问题。 |
那有没有什么办法可以解决这个问题呢 |
对 log4js不太了解。 抱歉帮不上忙。 可以给你参考一下
|
好的 谢谢 |
老哥,这个报错说的是对一个eventEmitter的监听超出默认限制。这个情况出现的原因是有不停的为同一个Event添加监听的情况。 |
示例项目 已经对 log4js.json的配置做了修复,因为 Log4js的新版本 配置方法不一样。 |
log4.json 里面新增加了日志文件,导致提示超过最大监听数量,当设置成案例默认的日志文件的时候没有问题,这个错误是需要改源码还是配置参数,希望有人看到了告知一下,项目以后还会定制添加很多日志文件,谢谢。
The text was updated successfully, but these errors were encountered: