All Projects → stackimpact → Stackimpact Nodejs

stackimpact / Stackimpact Nodejs

Licence: bsd-3-clause
DEPRECATED StackImpact Node.js Profiler - Production-Grade Performance Profiler: CPU, memory allocations, async calls, errors, metrics, and more

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Stackimpact Nodejs

Stackimpact Go
DEPRECATED StackImpact Go Profiler - Production-Grade Performance Profiler: CPU, memory allocations, blocking calls, errors, metrics, and more
Stars: ✭ 276 (+500%)
Mutual labels:  monitoring, tracing, agent, profiler, performance-analysis, performance-metrics, performance-tuning
Goappmonitor
Golang application performance data monitoring.
Stars: ✭ 478 (+939.13%)
Mutual labels:  monitoring, tracing, agent, profiler, performance-analysis, performance-metrics, performance-tuning
Stackimpact Java
StackImpact Java Profiler - Production-Grade Performance Profiler: CPU, locks, runtime metrics, and more
Stars: ✭ 7 (-84.78%)
Mutual labels:  monitoring, agent, profiler, performance-analysis, performance-metrics, performance-tuning
Myperf4j
High performance Java APM. Powered by ASM. Try it. Test it. If you feel its better, use it.
Stars: ✭ 2,281 (+4858.7%)
Mutual labels:  monitoring, agent, profiler, performance-analysis, performance-metrics, performance-tuning
Inspectit
inspectIT is the leading Open Source APM (Application Performance Management) tool for analyzing your Java (EE) applications.
Stars: ✭ 513 (+1015.22%)
Mutual labels:  monitoring, agent, performance-analysis, performance-metrics, performance-tuning
Spm Agent Nodejs
NodeJS Monitoring Agent
Stars: ✭ 51 (+10.87%)
Mutual labels:  monitoring, tracing, agent, performance-metrics
Stackimpact Python
DEPRECATED StackImpact Python Profiler - Production-Grade Performance Profiler: CPU, memory allocations, blocking calls, exceptions, metrics, and more
Stars: ✭ 671 (+1358.7%)
Mutual labels:  monitoring, profiler, performance-metrics, performance-tuning
Apm Agent Php
Elastic APM PHP Agent
Stars: ✭ 129 (+180.43%)
Mutual labels:  monitoring, tracing, performance-analysis
Profimp
Python import profiler
Stars: ✭ 52 (+13.04%)
Mutual labels:  profiler, performance-analysis, performance-tuning
Spm Agent Mongodb
Sematext Agent for monitoring MongoDB
Stars: ✭ 7 (-84.78%)
Mutual labels:  monitoring, agent, performance-metrics
Pcm
Processor Counter Monitor
Stars: ✭ 1,240 (+2595.65%)
Mutual labels:  monitoring, performance-analysis, performance-metrics
Scouter
Scouter is an open source APM (Application Performance Management) tool.
Stars: ✭ 1,792 (+3795.65%)
Mutual labels:  monitoring, agent, performance-metrics
Sparklens
Qubole Sparklens tool for performance tuning Apache Spark
Stars: ✭ 345 (+650%)
Mutual labels:  performance-analysis, performance-metrics, performance-tuning
Pinpoint
APM, (Application Performance Management) tool for large-scale distributed systems.
Stars: ✭ 11,883 (+25732.61%)
Mutual labels:  monitoring, tracing, agent
Sitespeed.io
Sitespeed.io is an open source tool that helps you monitor, analyze and optimize your website speed and performance, based on performance best practices advices from the coach and collecting browser metrics using the Navigation Timing API, User Timings and Visual Metrics (FirstVisualChange, SpeedIndex & LastVisualChange).
Stars: ✭ 4,255 (+9150%)
Mutual labels:  monitoring, performance-analysis, performance-metrics
Netutils Linux
A suite of utilities simplilfying linux networking stack performance troubleshooting and tuning.
Stars: ✭ 664 (+1343.48%)
Mutual labels:  monitoring, performance-tuning
Linux Perf Examples
极客时间《Linux 性能优化实战》案例
Stars: ✭ 724 (+1473.91%)
Mutual labels:  performance-analysis, performance-tuning
Opencensus Java
A stats collection and distributed tracing framework
Stars: ✭ 640 (+1291.3%)
Mutual labels:  monitoring, tracing
Opstrace
Secure observability, deployed in your own network. An open source alternative to SaaS solutions like Datadog, SignalFx, ...
Stars: ✭ 743 (+1515.22%)
Mutual labels:  monitoring, tracing
Corefreq
CoreFreq is a CPU monitoring software designed for the 64-bits Processors.
Stars: ✭ 1,026 (+2130.43%)
Mutual labels:  monitoring, performance-metrics

StackImpact Node.js Profiler

Overview

StackImpact is a production-grade performance profiler built for both production and development environments. It gives developers continuous and historical code-level view of application performance that is essential for locating CPU, memory allocation and I/O hot spots as well as latency bottlenecks. Included runtime metrics and error monitoring complement profiles for extensive performance analysis. Learn more at stackimpact.com.

dashboard

Features

  • Continuous hot spot profiling of CPU usage, memory allocation and async calls.
  • Continuous latency bottleneck tracing.
  • Error and exception monitoring.
  • Health monitoring including CPU, memory, garbage collection and other runtime metrics.
  • Alerts on profile anomalies.
  • Team access.

Learn more on the features page (with screenshots).

How it works

The StackImpact profiler agent is imported into a program and used as a normal package. When the program runs, various sampling profilers are started and stopped automatically by the agent and/or programmatically using the agent methods. The agent periodically reports recorded profiles and metrics to the StackImpact Dashboard. The agent can also operate in manual mode, which should be used in development only.

Documentation

See full documentation for reference.

Supported environment

  • Linux, OS X or Windows. Node.js v4.0.0 or higher.
  • CPU profiler is disabled by default for Node.js v7.0.0 to v8.9.3 due to memory leak in underlying V8's CPU profiler. To enable, add cpuProfilerDisabled: false to startup options.
  • Allocation profiler supports Node.js v6.0.0 and higher, but is disabled by default for Node.js v6.0.0 to v8.5.0 due to segfaults. To enable, add allocationProfilerDisabled: false to startup options.
  • Async profiler supports Node.js v8.1.0 and higher.

Getting started

Create StackImpact account

Sign up for a free trial account at stackimpact.com (also with GitHub login).

Installing the agent

Install the Node.js agent by running

npm install stackimpact

And import the package in your application

const stackimpact = require('stackimpact');

Configuring the agent

Start the agent in the main thread by specifying the agent key and application name. The agent key can be found in your account's Configuration section.

const agent = stackimpact.start({
  agentKey: 'agent key here',
  appName: 'MyNodejsApp'
});

All initialization options:

  • agentKey (Required) The API key for communication with the StackImpact servers.
  • appName (Required) A name to identify and group application data. Typically, a single codebase, deployable unit or executable module corresponds to one application.
  • appVersion (Optional) Sets application version, which can be used to associate profiling information with the source code release.
  • appEnvironment (Optional) Used to differentiate applications in different environments.
  • hostName (Optional) By default, host name will be the OS hostname.
  • autoProfiling (Optional) If set to false, disables automatic profiling and reporting. Focused or manual profiling should be used instead. Useful for environments without support for timers or background tasks.
  • debug (Optional) Enables debug logging.
  • cpuProfilerDisabled, allocationProfilerDisabled, asyncProfilerDisabled, errorProfilerDisabled (Optional) Disables respective profiler when true.
  • includeAgentFrames (Optional) Set to true to not exclude agent stack frames from profiles.

Focused profiling

Use agent.profile(name) to instruct the agent when to start and stop profiling. The agent decides if and which profiler is activated. Normally, this method should be used in repeating code, such as request or event handlers. In addition to more precise profiling, timing information will also be reported for the profiled spans. Usage example:

const span = agent.profile('span1');

// your code here

span.stop();

Is no callback is provided, stop() method returns a promise.

Manual profiling

Manual profiling should not be used in production!

By default, the agent starts and stops profiling automatically. Manual profiling allows to start and stop profilers directly. It is suitable for profiling short-lived programs and should not be used for long-running production applications. Automatic profiling should be disabled with autoProfiling: false.

// Start CPU profiler.
agent.startCpuProfiler();
// Stop CPU profiler and report the recorded profile to the Dashboard.
agent.stopCpuProfiler(callback);
// Start async call profiler.
agent.startAsyncProfiler();
// Stop async call profiler and report the recorded profile to the Dashboard.
agent.stopAsyncProfiler(callback);
// Start heap allocation profiler.
agent.startAllocationProfiler();
// Stop heap allocation profiler and report the recorded profile to the Dashboard.
agent.stopAllocationProfiler(callback);

Shutting down the agent

Optional

Use agent.destroy() to stop the agent if necessary, e.g. to allow application to exit.

Analyzing performance data in the Dashboard

Once your application is restarted, you can start observing continuous CPU, memory, I/O, and other hot spot profiles, execution bottlenecks as well as process metrics in the Dashboard.

Troubleshooting

To enable debug logging, add debug: true to startup options. If the debug log doesn't give you any hints on how to fix a problem, please report it to our support team in your account's Support section.

Overhead

The agent overhead is measured to be less than 1% for applications under high load.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].