I am using decache to re-require modules in loop. The server crashes as memory leak is observed.
call the following code recursively and you will observe significant memory leak:
var file = 'some file';
scheduleTimer = setInterval(function () {
updateFileCache();
}, pullTime);
updateFileCache: function (file) {
decache(file);
var newPlugin = require(file);
return newPlugin;
}