pudo-code-system

Memory Profiling

Phase: Optimize, Tags: #debugging #memory #latency

Context

Use this prompt to optimize high memory usage or debug memory leaks.

Variables

Prompt

Act as a Performance Tuning Expert. My application is exhibiting these symptoms: .

Please help me optimize this by:

  1. Explaining the likely causes of this memory pattern.
  2. Suggesting the exact commands or tools to generate and analyze a heap dump.
  3. Providing code patterns to look for that typically cause memory leaks in this runtime.

Example Usage

Input: My Node.js V8 application is exhibiting these symptoms: Memory usage steadily increases by 50MB every hour and eventually crashes with OutOfMemoryError.