node服务日志报错,这两个错误一个限制线程的错误,一个不知道什么错误?? 有解决办法吗。。。
09-13 03:19:20: (node:10273) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 31 wakeup listeners added. Use emitter.setMaxListeners() to increase limit
09-13 04:48:20: (node:10273) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 31 wakeup listeners added. Use emitter.setMaxListeners() to increase limit
09-13 05:50:20: (node:10273) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 31 wakeup listeners added. Use emitter.setMaxListeners() to increase limit
09-13 19:10:01: Error: Non-whitespace before first tag.
Line: 0
Column: 1
Char: H
at error (/home/www/api/node_modules/_sax@1.2.4@sax/lib/sax.js:651:10)
at strictFail (/home/www/api/node_modules/_sax@1.2.4@sax/lib/sax.js:677:7)
at beginWhiteSpace (/home/www/api/node_modules/_sax@1.2.4@sax/lib/sax.js:951:7)
at SAXParser.write (/home/www/api/node_modules/_sax@1.2.4@sax/lib/sax.js:1006:11)
at Parser.exports.Parser.Parser.parseString (/home/www/api/node_modules/_xml2js@0.4.23@xml2js/lib/parser.js:323:31)
at Parser.parseString (/home/www/api/node_modules/_xml2js@0.4.23@xml2js/lib/parser.js:5:59)
at exports.parseString (/home/www/api/node_modules/_xml2js@0.4.23@xml2js/lib/parser.js:369:19)
at IncomingMessage.<anonymous> (/home/www/api/sys/httpServer.js:31:9)
at emitNone (events.js:105:13)
at IncomingMessage.emit (events.js:207:7)
at endReadableNT (_stream_readable.js:1045:12)
at _combinedTickCallback (internal/process/next_tick.js:102:11)
at process._tickDomainCallback (internal/process/next_tick.js:198:9)
09-14 01:54:51: (node:10273) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 31 wakeup listeners added. Use emitter.setMaxListeners() to increase limit
09-14 02:36:51: (node:10273) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 31 wakeup listeners added. Use emitter.setMaxListeners() to increase limit
09-14 03:47:52: (node:10273) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 31 wakeup listeners added. Use emitter.setMaxListeners() to increase limit
09-14 06:58:09: (node:8771) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 31 wakeup listeners added. Use emitter.setMaxListeners() to increase limit
09-14 20:13:09: Error: Invalid character entity
回答
从报错信息来看,好像是说第一个标签前有非空白字符,这个可能是文件编码相关的问题,比如widows在文本文件前加BOM之类。
以上是 node服务日志报错,这两个错误一个限制线程的错误,一个不知道什么错误?? 有解决办法吗。。。 的全部内容, 来源链接: utcz.com/a/43745.html