What is a NodeJS process?
A NodeJS process is an instance of a computer program written in Node.js that is being executed. Unlike regular processes, Node.js processes are single-threaded and run with a single event loop. This allows Node.js processes to handle many concurrent connections without the overhead of creating a new thread for each connection.
Node.js processes are fundamental to the operation of Node.js applications. Monitoring Node.js processes can provide insights into application performance and resource usage, helping to ensure optimal operation and identify potential issues.
Understanding these processes' behavior can be critical in diagnosing performance issues or bugs within the application. It provides valuable data regarding how applications are performing in real-world conditions, helping to improve application performance.
How to monitor a NodeJS process?
ServicePilot makes it easy to monitor a Node.js process requiring only the installation of a ServicePilot Agent on the target server. With the simple addition of an auto-provisioning rule, ServicePilot will automatically detect, instrument processes with an APM library and provision the necessary resources to monitor performance counters of Node.js processes.
ServicePilot gathers statistics per Node.js process including:
- CPU utilization (%, system code, user code)
- Event loop delay: measures the time span between the scheduling of a callback and its execution
- Memory and heap utilization
- Asynchronous resources held in memory (by type: file, TCP, promises)
How to install a nodejs resource?
- Use your ServicePilot OnPremise installation or a SaaS account.
- Add a new nodejs resource via the web interface (
/prmresources) or via API (
/prmpackagespage), the default ServicePilot agent or another agent will be provisioned automatically.
Details of the nodejs package are located in the
/prmpackagespage of the software.
ServicePilot enables you to deliver IT services faster and more securely with automated discovery and advanced monitoring features.
By correlating the technology NODEJS with APM and infrastructure monitoring, ServicePilot is able to provide a more comprehensive view of an organization's IT environment.
This allows IT teams to quickly identify and diagnose issues that may be impacting application performance, and take corrective action before end-users are affected.