On Sun, Nov 9, 2014 at 11:47 PM, Balaganesh Krishnamoorthy
<balaganesh....@gmail.com> wrote:
> http://i.stack.imgur.com/bb5C4.png
>
>
> Hi,
>
>      I am having memory leak in my node application which i am running as a
> service. I took memory dump using heapdump node_module
>      after that i put it on a chrome profiler module. but the problem is i
> cant understand memory dump information
>
>      Please check the attachment. i will post more screenshot or memory dump
> file asap......

The shallow size is the size of the object itself, the retained size
is the shallow size + the size of all objects this object directly or
indirectly points to.  Example:

    var a = { /* empty */ };
    var b = { a: a };
    var c = { b: b };

The shallow size for all three is (for example) 24 bytes.  The
retained size for |a| is its shallow size because it doesn't contain
references to other objects.  For |b|, it's |a + b|'s shallow size and
for |c|, it's |a + b + c|.

The summary view gives you a breakdown on a per-constructor basis
(i.e. the class name.)

The comparison view lets you see heap growth (or shrinkage, as the
case may be) between snapshots.  Note that you need node-heapdump
v0.3.0 for that to work properly.

The comparison view is indirectly also part of the summary view: you
can get a summary of objects created between two snapshots.

The containment view is a breakdown of allocations per subsystem.
It's not that interesting for node.js applications, although it can
give you a quick estimate of how much memory is locked up in buffer
objects.

Hope that helps.  I will add the above to the README someday. :-)

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/CAHQurc96fQ8p8-GSQsUvrYAD48TCN0q-UNTQme16Vy7jGcmeOg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to