NodeJS notes

draft

Sys

Install Node packages system-wide,

    npm install -g grunt
    #npm install -g bower

DevOps

Allocating Memory

To start the application with 8GB allocated to the NodeJS instance, on a server that has that amount of FREE memory available,

node --max-old-space-size=8192 app.js

otherwise maybe just 3GB,

node --max-old-space-size=3072 app.js

Ref. www.codexpedia.com/javascript/increasing-the-memory-limit-in-node-js/

Dev

to display the hidden info on a status page for example,

<td class="...class..." data-bind="text: JSON.stringify($data.value)"></td>

HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun