Skip to content

Cross Platform mdb_v8, was (No Post Mortem Core Dump Support in 4.0.0) #2764

@yunong

Description

@yunong

Hi, at Netflix we leverage https://github.com/joyent/mdb_v8 quite heavily in production as the primary tool used to debug memory leaks and analyze production issues. It is currently, the only tool that we've had success with when it comes to fixing memory leaks in production. We are able to take a Linux Node 0.10-0.12 core dump, and debug it with mdb on Illumos.

It looks like this facility no longer exists in 4.0.0. As it turns out -- this is rather unfortunate and is a blocker when it comes to moving our production Node deployments on to 4.0.0.

It looks like @tjfontaine has done the work sometime ago to migrate a subset of the functionality to LLDB here https://github.com/tjfontaine/lldb-v8

If mdb_v8.so is going to be no longer kept up to date with Node, can we extend lldb-v8 to port over the rest of mdb_v8? This would ensure that this kind of critical post mortem analysis is available in new releases of node going forward and also more broadly on other platforms. Specifically, commands like ::findjsobjects, ::jssource, ::jssonconstructor are critical to debugging our production stack.

Just to be clear, there are no other tools that exist for Node today that can successfully debug memory leaks on production instances in the way that mdb_v8 can.

cc @lucamaraschi @mikeal @indutny @davepacheco @misterdjules

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions