Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 unpipe listeners added to [WriteStream]. Use emitter.setMaxListeners() to increase limit #121

Open
louisthomaspro opened this issue May 24, 2023 · 2 comments

Comments

@louisthomaspro
Copy link

louisthomaspro commented May 24, 2023

Describe the bug

Hello, you made a wonderful product tool, thank you!

I don't know if it's intended but when running unlighthouse on https://unlighthouse.dev/ using CI, CLI or API, I got the below warning printed multiple times in the console:

MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 finish listeners added to [WriteStream]. Use emitter.setMaxListeners() to increase limit

If guess it's coming from puppeteer. I don't have this warning when adding "--single-process" in puppeteerOptions.args.
Can we get rid of this warning ? Is this just a warning and does not affect the scan results ?

Thanks

@BennyAlex
Copy link

BennyAlex commented Aug 14, 2023

@harlan-zw
I also have this error in node 18. When i use --single-process it stucks at the start.
(node:12576) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 exit listeners added to [process]. Use emitter.setMaxListeners() to increase limit

@olivervorasai
Copy link

olivervorasai commented Apr 2, 2024

maxConcurrency can also be used as a workaround instead of --single-process. I use 8 for my 8 core 16 logical cpu so unlighthouse doesn't slow my pc down to a crawl.

https://unlighthouse.dev/guide/recipes/improving-accuracy#reduce-parallel-scans

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants