No (none that I am aware of) - only the one where I store the require()
result, which I null.
My code is as simple as
console.log(process.memoryUsage());
var express = require('express');
gc();
console.log(process.memoryUsage());
express = null;
require.cache=[];
module.children=[];
gc();
setTimeout(function(){ console.log(process.memoryUsage()); }, 10000);
running with 'node --expose_gc'
So either there's some reference to the module left that I've missed while
reading module.js, or it's the garbage collector...?
On Friday, June 7, 2013 7:09:39 PM UTC-7, mscdex wrote:
>
> On Jun 7, 10:07 pm, Hubert Eichner <[email protected]>
> wrote:
> > As I wrote, I delete everything from require.cache, from
> > global.module.children and the variable referencing the module.exports.
> Is
> > there any other references to a loaded module?
>
> Depends, do you have any variables that contain references to the old
> object?
>
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.