Socket.io memory doesn't drop of after clients disconnect

var server = require('socket.io').listen(1781);
server.set('log level', 1);

setInterval(function() {
    console.log(process.memoryUsage());
}, 60000);

I have memory leaks in my Socket.io 0.9.16 and Node 0.10.12 / 0.10.13 application. After connecting some clients the RSS memory increases but after I disconnect them the memory doesn't drop off. I stripped my app down to the upper code to exclude any of my mistakes. After connecting 1000 clients, the process takes 65MB (initially it took ~15MB) and after I disconnect all clients, the memory stays high. Any help?

All of the articles/answers i read were about earlier versions of node or socket.io. I am desperate to find a solution on this.

I've had similar issues with socket.io. It seems that once a client connects, it never gets deleted from socket.io.

You can debug the value of SocketIoServer.sockets.sockets. It is an array containing all connected (and disconnected sockets). Maybe that's where your memory leak lies.

Also, I just saw that socket.io released version 1.0. You can try it out and see if it has resolved that issue.

I was using nodetime for tracking memory usage and it seems like it had a memory leak. After ditching nodetime, the memory consumption was stable.