Stop the Node.js Application

When running the Node.js Agent with the Java proxy, configure the script/mechanism that stops an instrumented Node.js instance to use the SIGTERM signal if possible. SIGKILL (kill -9) prevents the resources for the agent's Java proxy from being released.

When running the Node.js Agent in the multi-tenant mode, you must manually shut down the Java proxy after stopping your Node.js application.