Memory Profiling For Mere Mortals

Server

House and Chimney

var http           = require(http)
  , fs             = require(fs)
  , path           = require(path)
  , templateEngine = require(any-template-engine)

var header = fs.readFileSync(path.join(__dirname, my-header.html), utf8)
  • required modules and static header are created once and stay in memory for the life time of the server