I just stumbled upon the new core module "tracing". Its part of v0.11 so 
this is more for future reference than production use for most projects I 
guess.
It brings with it a gc-event which seems promising with before / after 
stats: 
https://github.com/joyent/node/blob/master/doc/api/tracing.markdown#v8

- Phillip

On Friday, October 31, 2014 5:40:55 AM UTC+1, Wei wrote:
>
> Thanks for the information, Philip. That's my impression as well. I'd be 
> hesitant to use a module that has not been battle-tested in production 
> environment. The other way I can think of is to throw some simulated prod 
> traffic to my node app with UMEM_DEBUG turned on. This is inspired by
> https://www.joyent.com/blog/walmart-node-js-memory-leak
> It would require significant analysis on the memory trace although and not 
> a fit for real-time monitoring. 
>
>
> On Thursday, October 30, 2014 5:21:03 AM UTC-7, Phillip Johnsen wrote:
>>
>> Hi Wei,
>>
>> I've also been trying to find good ways of measuring GC related stuff 
>> lately. Havent found a simple answer yet, seems like there's no way around 
>> native bindings to get a hold of the real nitty gritties.
>> There's a small list of modules on npmjs.org matching "gc" atm, i.e. 
>> node-gc <https://www.npmjs.org/package/node-gc>. Unfortunately I havent 
>> been able to try any of them yet..
>> Also there might be some inspiration in StrongLoops commercial 
>> strong-agent <https://www.npmjs.org/package/strong-agent> module which 
>> gather tons of detailed metrics.
>>
>> - Phillip
>>
>> On Friday, October 24, 2014 8:00:45 AM UTC+2, Wei wrote:
>>>
>>> Hi folks:
>>>
>>> I am trying to determine if the GC behavior for a Node application. 
>>> What's the recommended way to have Node application get some information 
>>> like:
>>> 1. V8 heap size at each minute
>>> 2. # of GCs in a second 
>>> etc. 
>>>
>>> From what I see in Google, there are some commercial products from 
>>> AppDynamics & NewRelic, but haven't seen much beyond that. Any suggestions?
>>>
>>> Thanks,
>>> -Wei
>>>
>>

-- 
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/df531961-d937-47d5-819e-2f170eb5c3b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to