asynchronous - Node.js Async mapLimit and memory -
solved, see answer please. i have list of urls fetch using request , reason unable save more 1720 records database when try fetch 2000 or more url's @ time. if try 1000 2000 , 2000 3000, 3000 results in total. when try 1000 3000 or 4000 6000, script stops after fetching 1720th result. what reason that? i use maplimit in order limit concurrent connections. app.get('/asynctest', function(req, res) { var people = []; (var = 1000; < 3000; a++) { people.push("http://www.example.com/" + + "/person.html"); } async.maplimit(people, 20, function(url, callback) { // iterator function var options2 = { url: url, headers: { 'user-agent': req.headers['user-agent'], 'content-type': 'application/json; charset=utf-8' } }; request(options2, function(error, response, body) { if (!error && response.statuscode == 200) { async.series([ ...