Skip to content

resolve max event listeners warning #1575

@thescientist13

Description

@thescientist13

Current State

As part of the recent v0.33.0 release, the Greenwood website started showing this message when building the site for production

(node:85019) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 Symbol(kWorkerFreedEvent) listeners added to [WorkerPool]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(Use `node --trace-warnings ...` to show where the warning was created)

Desired State

Not sure how bad of an issue it is to have, but it wasn't there before, so would like to understand what's happening and resolve it.

Additional Context

Not sure if it was re-introduced as part of #1546 ? Or maybe as part of the upgrade to Node 22.18.0

This was an issue we've seen before and fixed / removed, but it was kind of a brute force solution, so not sure if that's what we want to again 🙈

Or maybe we need to do more about parallel serialization as part of #970 / #720 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprove something existing (e.g. no docs, new APIs, etc)v0.34.0

    Type

    Projects

    Status

    🔖 Ready

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions