Whenever you're ready, walk me through how you'd approach this.
Describe how you would handle memory management and prevent memory leaks in a long-running Node.js or Python application.
Discuss how you would distinguish normal garbage-collector behavior from a leak, investigate steadily increasing memory, and prevent common retention problems. You may answer using either runtime, but name concrete tools and code-level practices.