【发布时间】:2016-09-17 19:20:49
【问题描述】:
我以前从未使用过 node.js。但是按照here 的步骤进行 solr 安全代理。一切正常,但它给了我这个警告。我知道我必须设置最大监听器,但不知道我如何以及在哪里做。请帮帮我。
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at addListener (events.js:160:15)
at /home/abc/node_modules/solr-security-proxy/node_modules/http-proxy/lib/node-http-proxy/routing-proxy.js:63:27
at Array.forEach (native)
at null.<anonymous> (/home/abc/node_modules/solr-security-proxy/node_modules/http-proxy/lib/node-http-proxy/routing-proxy.js:62:33)
at emit (events.js:98:17)
at addListener (events.js:138:10)
at Array.0 (/home/abc/node_modules/solr-security-proxy/solr-security-proxy.js:69:13)
at Server.handler (/home/abc/node_modules/solr-security-proxy/node_modules/http-proxy/lib/node-http-proxy.js:175:40)
at Server.emit (events.js:98:17)
at HTTPParser.parser.onIncoming (http.js:2164:12)
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at addListener (events.js:160:15)
at Array.0 (/home/abc/node_modules/solr-security-proxy/solr-security-proxy.js:69:13)
at Server.handler (/home/abc/node_modules/solr-security-proxy/node_modules/http-proxy/lib/node-http-proxy.js:175:40)
at Server.emit (events.js:98:17)
at HTTPParser.parser.onIncoming (http.js:2164:12)
at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:152:23)
at Socket.socket.ondata (http.js:2022:22)
at TCP.onread (net.js:528:27)
【问题讨论】:
标签: node.js