npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@apminsight/native-stats

v1.0.0

Published

Exposes node v8 garbage collection stats

Downloads

4,074

Readme

Native Metrics for Site24x7 Node.js Agent

The Site24x7 Node.js agent uses @apminsight/native-stats, a native node add-on for collecting GC and event loop stats using the Chromes' V8 engine. These metrics can help improve your application's performance and identify bottlenecks in the application.

Before you can use NVM, you need to install the Site24x7 Node.js agent.

To get APM Insight NVM, follow the below given instructions.

Table of contents:

  • Node VM installation
  • Prerequisites to install NVM *Getting started
  • Performance Metrics

Node VM installation

  • The native module is automatically installed while installing the Node.js agent.(v3.0.0 or higher).
  • During installation, the native module first attempts to build from the source on the target machine. If the build fails, Node.js prints a stack trace to the console, which you can ignore.
  • If the native module build is successful, you can see all the metrics, including garbage collection, memory usage, event loop data, and CPU utilization. If the build fails, you can only see memory and CPU related metrics.

Prerequisites to install NVM

| Platform | Python version recommended | Python version not supported | Environment | | ------ | ------ | ------ | ------ | | Unix/Linux | v2.7 | v3.x.x | Make, C/C++ compiler (such as GCC) | | macOS | v2.7 | v3.x.x | Xcode | | Windows | v2.7 | v3.x.x | Visual C++ Build Environment |

Getting started

Gain insight into useful runtime data for troubleshooting performance issues and monitoring your application's health with NVM metrics.

To view the NVM metrics in the client:

  • Log in to your Site24x7 web client
  • Navigate to APM > your Node.js application > click the Node VM tab.
  • Select the time frame for which you need the metrics.

You will get the graphs and metrics using which you can troubleshoot performance issues.

Performance metrics

  • GC Pause Time: The amount of time spent on garbage collection. Spikes in GC time usually indicate a problem.
  • GC Pause Frequency: The number of GC runs performed per minute.
  • Memory Usage: The amount of memory consumed by the Node.js process.
  • CPU Utilization: The CPU utilization of the Node.js process.
  • Event Loop Ticks Per Minute: The number of event loop ticks per minute.
  • Max CPU time per tick: The maximum amount of time spent in a single tick per minute.