You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There appears to be some kind of memory leak when using perMessageDeflate: true (default).
It used to be fine, but I suppose a combination of updated dependencies (node/engine.io?) resulted in this leak. It's very noticable when it happens.
With deflate my application will use >3GB of memory (and rising until OOM) with 10-20k active websockets.
Without deflate I'm looking at <1GB. I transfer about 200-300kb of data to each client.
Maybe updating "ws" to a recent version could help fix this. It would be cool if I could provide a wsEngine object directly via the options object, instead of having the require('ws') done internally.
The text was updated successfully, but these errors were encountered:
You want to:
Current behaviour
There appears to be some kind of memory leak when using perMessageDeflate: true (default).
It used to be fine, but I suppose a combination of updated dependencies (node/engine.io?) resulted in this leak. It's very noticable when it happens.
With deflate my application will use >3GB of memory (and rising until OOM) with 10-20k active websockets.
Without deflate I'm looking at <1GB. I transfer about 200-300kb of data to each client.
Here's a screenshot of what a heapdump looks like: https://i.imgur.com/byTUInU.png
Expected behaviour
Reasonable memory usage.
Setup
Suggestion
Maybe updating "ws" to a recent version could help fix this. It would be cool if I could provide a wsEngine object directly via the options object, instead of having the require('ws') done internally.
The text was updated successfully, but these errors were encountered: