forked from stelcheck/node-graylog2
-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
This is a node issue, but your library uses zlib, and it causes a memory leak that has been crashing our docker containers on EC2. Unfortunately that means we can no longer use your library, and have to opt for another lib that doesn't use zlib.
It's really easy to recreate the issue:
let zlib = require('zlib');
let message = {
some:"data"
};
let payload = new Buffer(JSON.stringify(message));
for(var i =0; i < 30000; ++i){
zlib.deflate(payload, function (err, buffer) {
});
}
setTimeout(()=>{}, 2000000);
Here's the related node issue:
nodejs/node#8871
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels