There seems to be a memory leak problem on tuiter's REST API methods.
example code to reproduce the issue:
var cnt = -1;
makeRequest()
function makeRequest() {
// 1. perform a request to the tuiter API
// 2. re-attempt after a short delay
// 3. log rss memory usage every 50 requests
cnt++
tu.showUser({screen_name:'jack' }, function(err, data){
if (err) console.log('error', err, data)
if (cnt % 50 == 0) {
// display rss memory usage
console.log(process.memoryUsage().rss)
}
var t = setTimeout(function() {
// re-run the request after a short delay
makeRequest()
}
, 50)
t = null
data = null
err = null
})
}
The log will show that the memory usage is constantly increasing. Am I doing something wrong?
Could this be related to forwardemail/superagent#152 or to forwardemail/superagent#193
Any known workaround or fix ?
There seems to be a memory leak problem on tuiter's REST API methods.
example code to reproduce the issue:
The log will show that the memory usage is constantly increasing. Am I doing something wrong?
Could this be related to forwardemail/superagent#152 or to forwardemail/superagent#193
Any known workaround or fix ?