当我阻止文件完全加载时出现内存泄漏。例如
<script type="text/javascript" src="http://mydomain.com/js/lib.js"></script>
(node) warning: possible EventEmitter memory leak detected. 11 listeners added.
Use emitter.setMaxListeners() to increase limit.
Trace
at Socket.EventEmitter.addListener (events.js:160:15)
at Socket.Readable.on (_stream_readable.js:663:33)
at Socket.EventEmitter.once (events.js:179:8)
at TCP.onread (net.js:527:26)
当我删除这条线时,我停止了内存泄漏:
app.use(express.static(__dirname + '/public')));
我该如何尝试解决这个问题?