Git Product home page Git Product logo

meteor-heapsave's Introduction

meteor-heapsave

Take Heapdump and save them into S3

Install

mrt add heapsave

Usage

var save = HeapSave.toS3('access-key', 'access-secret', 'bucket');

// save heapdumps per every hour
Meteor.setInterval(function() {
  var dumpName = 'myapp-' + Date.now();
  save(dumpName);
}, 1000 * 60 * 60);

Notice

  • In order to get a heapdump you need to have at least twice of Memory on the system. So it's better to turn on swap if you are running under a low memory server.
  • Every heapdump will cause v8 to call gc(). It is a blocking operation.
  • Heapdump will be saved to disk using a child_process.
  • Heapdump will be compressed before sending it to s3. Compression also done via a child process.
  • refer node-heapdump project for more information

Analyzing

Heapdumps can be analyzed using Chrome dev tools.

  • download your dumps from s3
  • untar them
  • load them into chrome dev tool under "profiles" tab

Loading Heapdump into Chrome Dev Tools

  • learn how to analyze heap and detect memory leaks

meteor-heapsave's People

Contributors

arunoda avatar

Stargazers

Grégory Horion avatar Gabriel Rubens Abreu avatar Javier Gonzalez avatar alan blount avatar Philipp Muens avatar

Watchers

James Cloos avatar  avatar

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.