Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

Commit

Permalink
server: remove use of memwatch
Browse files Browse the repository at this point in the history
This plugin is outdated. Either use memwatch-next:
 https://www.npmjs.com/package/memwatch-next
Or heapdump. In this case, see:
 http://blog.yld.io/2015/08/10/debugging-memory-leaks-in-node-js-a-walkthrough/

Just remove the current implementation. It can still be added back
later.
  • Loading branch information
vincentbernat committed Aug 15, 2015
1 parent ee3fca7 commit f559087
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 39 deletions.
35 changes: 0 additions & 35 deletions lib/monitor.js

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"winston": "~1.0.1"
},
"optionalDependencies": {
"memwatch": "~0.2.2",
"mysql": "~2.8.0",
"nodecastor": "~0.1.6",
"pg": "~4.4.1",
Expand Down
4 changes: 1 addition & 3 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ var http = require('http'),
glob = require('glob'),
logger = require('./lib/logger'),
config = require('./lib/config'),
chromecast = require('./lib/chromecast'),
monitor = require('./lib/monitor');
chromecast = require('./lib/chromecast');

var app = require('./lib/express'),
server = http.createServer(app),
Expand Down Expand Up @@ -54,7 +53,6 @@ db
if (config.get('chromecast:enabled')) {
chromecast();
}
monitor.start();
server.listen(config.get('port'), function() {
logger.info('Express server listening on port %d in %s mode',
config.get('port'),
Expand Down

0 comments on commit f559087

Please sign in to comment.