To be short, I did not configure the frontend sails project with the base controller and hit it with loadtest, the memory continues to grow and there are no signs of stabilization. I read the previous posts and disabled grunt, session, socket, pubsub etc.
Setup:
Sails Version: v0.12.3
Node version: v4.4.7
NPM Version: v2.15.8
Play:
create a new sail project
sails new Project --no-frontend
change .sailsrc:
{ "generators": { "modules": {} }, "hooks": { "session": false, "sockets": false, "pubsub": false, "grunt": false, "i18n": false } }
added controllers /TestController.js:
module.exports = { hi: function (req, res) { return res.send("Hi there!"); } };
perform load check:
var loadtest = require('loadtest'); var host = 'http://localhost:1337'; var options = { url: host + '/test/hi', requestsPerSecond: 50 }; loadtest.loadTest(options, function(error, result) { if (error) { return console.error('Got an error: %s', error); } console.log('Tests run successfully: '+result); });
Thank you for your help.
Mars
source share