Memory Profiling For Mere Mortals

Server

House and Chimney

const http = require('http')
const fs   = require('fs')
const path = require('path')
const templateEngine = require('any-template-engine')

const 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