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.
Activity
storv commentedon Jul 26, 2019
mark to ensure resolve this problem
SupertigerDev commentedon Aug 24, 2019
I spent multiple days trying to figure out what's happening and I finally found out its "perMessageDeflate".
darrachequesne commentedon Oct 5, 2020
perMessageDeflatehas been disabled by default in Engine.IO v4, as it consumes a lot of memory.See also #299
Closed by 078527a.