Hi, The memory tools you suggested are used for heap analysis and leak-detection. They are mainly measuring the memory used by js project (js files).
But I want to know the memory used by node itself. Which parts use the remaining 4M, and how much does one part use. Thanks Zidong 2015-03-31 15:45 GMT+08:00 Luca Morandini <[email protected]>: > On 31/03/15 17:23, Zidong Jiang wrote: > >> >> /1, "the whole RSS is used by V8"?/ >> I think the RSS(11M) is used by the whole nodejs, >> > > You're right, my statement was inaccurate. > > > and heapTotal(7M) is used by V8. >> V8 creates certain heaps to store js object, map, code and so on.. >> And heapUsed(3M) is the size of current used size of heap. The remaining >> part of >> heap(7-3=4M) is empty, but reserved by v8. Is that right? >> > > Yes. > > > /2, The remaining memory(11-7=4M), "Mainly buffers used during I/O. "/ >> Because when I check the memoryUsage, nodejs haven't run any file yet. In >> my >> understanding, those part memory is used by c/c++ part of nodejs and libs >> in >> /deps, including the v8. (running v8 itself needs memory) >> what does / "buffers used during I/O." mean?/ >> > > When Node,js executes I/O operations, data read/written have to be > buffered somehow, and that's not done in the heap. > > > 3, do you know any methods/tools to know the memory distribution of >> nodejs? how >> many is used by linuv, by v8 itself, by openssl ... >> > > node-heapdump , node-memwatch , and StrongLoop Arc > https://strongloop.com/strongblog/node-js-performance-heap-profiling-tip/ > > Regards, > > Luca Morandini > Data Architect - AURIN project > Melbourne eResearch Group > Department of Computing and Information Systems > University of Melbourne > Tel. +61 03 903 58 380 > Skype: lmorandini > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CADqgMXtH6AM43pyWVwhwL7DS_WgxcjScvSFCjP2O363orzmcyA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
