Giter Club home page Giter Club logo

Comments (8)

paulrutter avatar paulrutter commented on May 31, 2024 1

See fac8e92
These were:

  • --optimize_for_size
  • --always_compact

from node-oom-heapdump.

paulrutter avatar paulrutter commented on May 31, 2024

Hi @dhessler,

Yes, the company i work for is planning to move to Node 12 when it becomes LTS in october.
Part of that upgrade is making sure this module works on 12 as well.

So yes, i expect to add support for Node 12 in the near future.

Regards,

from node-oom-heapdump.

paulrutter avatar paulrutter commented on May 31, 2024

I haven't been able to test it thoroughly, but i managed to modify the native code to compile for Node.js 12. I've committed my code in a branch (node12) and published a "beta" version on npm, to test with.

See https://www.npmjs.com/package/node-oom-heapdump/v/1.2.0-beta.0.
Let me know what your experiences are.

UPDATE:

<--- Last few GCs --->

[83:0x3af7320]     1265 ms: Mark-sweep 79.9 (81.3) -> 79.6 (80.8) MB, 59.9 / 0.0 ms  (+ 22.0 ms in 16 steps since start of marking, biggest step 17.4 ms, walltime since start of marking 98 ms) (average mu = 0.460, current mu = 0.169) allocation failure sc[83:0x3af7320]     1358 ms: Mark-sweep 79.8 (80.8) -> 79.4 (80.8) MB, 75.9 / 0.0 ms  (+ 11.8 ms in 2 steps since start of marking, biggest step 11.8 ms, walltime since start of marking 92 ms) (average mu = 0.300, current mu = 0.053) allocation failure sca

<--- JS stacktrace --->
Cannot get stack trace in GC.


#
# Fatal error in , line 0
# unreachable code
#
#
#
#FailureMessage Object: 0x7fe869953880[2019-09-02T13:15:45+01:00]

It looks like i'll need to dig a little deeper; creating a heapdump through the v8 API causes a FATAL error on Node12, where this used to work earlier.

from node-oom-heapdump.

dhessler avatar dhessler commented on May 31, 2024

wow thanks @paulrutter for the quick investigation! definitely happy to beta test when ready.

from node-oom-heapdump.

paulrutter avatar paulrutter commented on May 31, 2024

I'm having a hard time getting it to work on Node.js 12.x.
See nodejs/node#27552 (comment).

I think i'll need help from the v8 team in order to proceed.
It seems that the API's haven't changed, but the context in which the API is called no longer seems to work on Node.js 12.

To be continued.

from node-oom-heapdump.

paulrutter avatar paulrutter commented on May 31, 2024

@dhessler after investigation, it looks like the combination of node startup flags i was using for my test case, caused the module to be unstable on nodejs 12.
Although this is not as it should be (i'm waiting on response from the nodejs team), it does work when not using those flags.

So, i would suggest we start using it on Node 12, to gather hands on experience with it.
If you encounter any issues, please let me know.

I will start using it in the next couple of months for sure.
Version 1.2.0 is now published to npm :)

from node-oom-heapdump.

paulrutter avatar paulrutter commented on May 31, 2024

I'm closing the issue for now.
Let me know when you encounter any issues by filing a new issue.

from node-oom-heapdump.

jorisw avatar jorisw commented on May 31, 2024

@paulrutter Which were the flags causing Node 12 to run badly? I'm having the same problem with v2.0.0 on Node 12.10.

from node-oom-heapdump.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.