Ouptut memory usage
This commit is contained in:
parent
05a6f5ca06
commit
eaba18d6f5
4 changed files with 27 additions and 18 deletions
|
@ -151,6 +151,9 @@ if (!module.parent) {
|
|||
app.listen(process.env.PORT || 4042, function() {
|
||||
debug('Koa HTTP server listening on port ' + (process.env.PORT || 4042));
|
||||
});
|
||||
setInterval(function() {
|
||||
debug('%sMB', process.memoryUsage().rss / 1024 / 1024);
|
||||
}, 10000);
|
||||
}
|
||||
|
||||
export default app;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue