aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

Error message "Possible EventEmitter memory leak detected."

Open nomike opened this issue 1 year ago • 3 comments

Describe the bug

When I'm, running CDK my terminal get's spamed with these errors:

(node:110573) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [TLSSocket]. Use emitter.setMaxListeners() to increase limit

Expected Behavior

These error should not be displayed.

Current Behavior

see above

Reproduction Steps

Happens every time I run cdk deploy.

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.128.0 (build d995261)

Framework Version

2.126.0

Node.js Version

v20.5.1

OS

Ubuntu 22.04.3 LTS - WSL

Language

Python

Language Version

Python 3.10.12

Other information

My CDK code is quite huge.

If you can not easily reproduce this let me know please. I might work on constructing a simpler example then which I am actually able to share.

nomike avatar Feb 20 '24 11:02 nomike

Thank you for the report. Any chance you could share a tiny repo that we can check out and reproduce it in our local environment?

pahud avatar Feb 20 '24 19:02 pahud

This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

github-actions[bot] avatar Feb 22 '24 20:02 github-actions[bot]

Also seen on my environment and for a long time (cdk 2.122.0 today, but multiple versions before). Related to assets rebuilt locally and uploaded, probably docker images sent to ECR.

mdemarqu avatar Feb 23 '24 08:02 mdemarqu

This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

github-actions[bot] avatar Jun 03 '24 20:06 github-actions[bot]