Book Image

Mastering Web Application Development with Express

By : Alexandru Vladutu
Book Image

Mastering Web Application Development with Express

By: Alexandru Vladutu

Overview of this book

Table of Contents (18 chapters)
Mastering Web Application Development with Express
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Simple tips for improving the application monitoring


Next, we are going to learn about simple techniques that can ease our work when monitoring the Express web applications. Their purpose is to make the application more visible and provide output-relevant details regarding the status of the application.

Probably the most popular filename for Express applications is server.js. Another thing that is really likely to happen is that for most (or perhaps all) of our applications, we will use this name as the entry point (main file) of our application.

Let's suppose that we have three different applications running on the same instance: a blog, a notes application, and a file-sharing application. Since their entry point is server.js, we will see the same process title everywhere:

36864 node server.js
36865 node server.js
36866 node server.js

Alright then, so how can we differentiate between them? Well, sure we can type in some command to find out the current working directory of a PID, but that...