|
[nodejs] Как бороться с EventEmitter memory leak detected?
|
|||
---|---|---|---|
#18+
Привет! Сделал небольшое приложение которое подписывается на редис канал и как только получит сообщение отправляет его нужному клиенту. Все работает нормально, но приходит перезапускать приложение 4-5 раз в сутки, в логах вижу постоянно ошибку автор(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit. код приложения Код: javascript 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41.
Подскажите, в какую сторону смотреть? Модератор: Тема перенесена из форума "HTML, JavaScript, VBScript, CSS". ... |
|||
:
Нравится:
Не нравится:
|
|||
20.12.2012, 14:15 |
|
|
Start [/forum/topic.php?fid=24&tid=1480873]: |
0ms |
get settings: |
23ms |
get forum list: |
13ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
71ms |
get topic data: |
26ms |
get forum data: |
4ms |
get page messages: |
70ms |
get tp. blocked users: |
2ms |
others: | 305ms |
total: | 520ms |
0 / 0 |