If you run the code below and restart the redis server, you will get one or two uncaughtException, but no more errors, and then, the memory will grow very quickly, I want to know why and how to solve this problem.
var redis = require('redis').createClient(); setInterval(function(){ redis.multi() .zrangebyscore('timeup', 0, Date.now()) .zremrangebyscore('timeup', 0, Date.now()) .exec(function(err, data) { if(err) console.log(err.stack); if(data) data = data[0]; }); }, 1); process.on('uncaughtException', function(err) { console.log(err.stack); })
source share