SAP BTP: Monitoring Node.js Application Memory and Alerting

If a Node.js application runs close to its Cloud Foundry memory limit, inspect the application instances before increasing the memory allocation. The runtime quota reserved for an instance and its actual memory consumption are different figures.

Inspect application instances

Target the correct org and space using the Cloud Foundry CLI, then check the app status and recent logs.

cf target
cf app my-node-app
cf logs my-node-app --recent

Replace the application name with your own. Compare memory use across instances and look for restarts, crashes or out-of-memory messages. Check application metrics with the development team if memory grows over time.

Set up monitoring

SAP Cloud ALM supports observability for custom Node.js applications in Cloud Foundry through its OpenTelemetry-based instrumentation. Where the relevant metric is available in Health Monitoring, configure an application-specific threshold and notification action, or use an approved custom metric integration. Test the alert delivery and choose thresholds based on measured workload, not arbitrary universal values.

Increasing instance memory may provide temporary capacity but can increase cost and conceal a leak. Validate sustained memory behavior after any correction.

SAP Help: Establish End-to-End Observability

SAP Help: Configure Metrics

SAP Note: 3731003 (related topic).

You May Also Like

Leave a Reply?