Node, iOS, Android, HTML5, JavaScriptの話題。ときどきMacやLinux。 Node.jsのメモリ使用量を監視するスクリプト。アクセス数と同時に出力します。 var util = require('util'); var http = require('http'); var count = 0; http.createServer(function(req,res) { count++; res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('\n'); }).listen(3000); setInterval(function(){ console.log("count="+count+", " + util.inspect(process.memoryUsage())); }, 10