$ node server.js
output in terminal shows that req.foo
is no longer sitting in the heap:
got request with a foo of length 10000000
hello world
got request with a foo of length 0
hello world
{ before:
{ nodes: 87105,
time: Wed Mar 05 2014 15:04:07 GMT-0800 (PST),
size_bytes: 7986496,
size: '7.62 mb' },
after:
{ nodes: 68490,
time: Wed Mar 05 2014 15:04:13 GMT-0800 (PST),
size_bytes: 7569112,
size: '7.22 mb' },
change:
{ size_bytes: -417384,
size: '-407.6 kb',
freed_nodes: 22053,
allocated_nodes: 3438,
details:
[ [Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object] ] } }