Describe a scenario where you had to debug a memory leak in a Node.js or Java backend. What tools and methodologies did you use?