We were reloading only the two renderer processes. This was causing the main process to continue subscribed to older renderers that were not existing.
(node:22748) MaxListenersExceededWarning: Possible EventEmitter memory leak detected.
11 render-view-deleted listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit
Now when using the reload command, both the main process and the renderer processes will be reloaded. This makes Cerebro to reload a bit slower but avoids memory leaks.
We were reloading only the two renderer processes. This was causing the main process to continue subscribed to older renderers that were not existing.
Now when using the
reload
command, both the main process and the renderer processes will be reloaded. This makes Cerebro to reload a bit slower but avoids memory leaks.