{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • Edge/API Management /
avatar image
2

Debugging, logging, monitoring and performance tuning of Edge node.js proxies  

  • Export to PDF
Sathish Balasubramaniyan   created · Oct 14, 2016 at 04:13 AM · 2.1k Views · edited · Oct 14, 2016 at 04:15 AM

In response to a consulting request from a customer, I recently collated a list of links related to debugging, logging, monitoring and performance tuning for Apigee Edge node.js proxies. These links are mostly from Apigee Community and Apigee documentation along with a few public links as well. Thought of consolidating these into a short article for easy reference.

Node.js runtime: Apigee Edge uses Trireme to run node.js components in a JVM. A detailed overview of Trireme including differences with regular node.js and limitations is available at https://github.com/apigee/trireme

Debugging: This link http://docs.apigee.com/api-services/content/debugging-nodejs-proxies explains the basics and best practices for debugging node.js components in Apigee Edge. It covers node.js logs feature and debugging using console.log and the Apigee Edge trace tool. The link provides the Apigee management API call to automate retrieval of node.js logs from the Apigee Edge platform.https://www.npmjs.com/package/debug is a small debugging utility that can be used with on-premises deployments.

The video http://techblog.netflix.com/2015/12/debugging-nodejs-in-production.html provides an in-depth insight into debugging node.js applications in production and covers topics such as analyzing latency using Restify, using Linux Perf Events to sample stack traces of running processes in production, using FlameGraphs to analyze stack trace samples to identify poorly performing code, capturing core dumps on crashes, analyzing core dumps using mdb to narrow down to source code causing crashes, using gcore to analyze memory leaks and leaking objects. https://github.com/nodejs/post-mortem, https://github.com/joyent/mdb_v8 and https://github.com/indutny/llnode are useful links covering debugging of running node.js production processes.

Logging and monitoring: The community article https://community.apigee.com/articles/3352/api-log-management-push-model.html explains how to push logs from node.js components running on Apigee Edge to tools such as Loggly and Splunk for monitoring. http://docs.apigee.com/api-services/reference/message-logging-policy explains logging from Apigee API proxies to files on the file system and syslog servers.

Performance tuning : The community post https://community.apigee.com/articles/6490/nodejs-performance-tips-socket-pooling.html explains a simple setting that can give significant performance impovements if there are many concurrent outgoing requests to the same host.

thub.nodes.view.add-new-comment
node.jsloggingmonitoringtriremedebugging
Add comment
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Article

Contributors

avatar image

Follow this article

61 People are following this .

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Navigation

Debugging, logging, monitoring and performance tuning of Edge node.js proxies

Related Articles

3 new capabilities available in Apigee Edge (September)

Stackdriver Monitoring and Logging For Edge

How to import a NodeJS module to apigee edge?

Apigee Edge - External Message Logging to ELK stack

How do I make Salesforce APIs more consumable with Apigee?

Using scheduling for Apigee trace instead of manual work with control

Node.js Performance Tips: Socket Pooling

Sample: Using Node.js caching with Edge policies

Apigee to AWS Lambda

How to Read JMX Statistics via The Shell

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges