Memory Management & Garbage Collection Questions

Managing memory as a performance resource, in both managed-runtime and manual-allocation contexts. Covers allocation patterns, garbage-collection behavior and tuning, pauses and fragmentation, and detecting and fixing memory and resource leaks. Emphasizes the effect of memory pressure on throughput, latency, and stability.

MediumTechnical
94 practiced

A microservice shows steadily increasing memory usage and occasional OOM kills in production. Describe a systematic troubleshooting plan: which metrics and profilers you would use, how to reproduce the leak locally, steps to triage (e.g., heap snapshots), possible quick mitigations for production, and how you would explain technical trade-offs and timelines to product managers.

That is every published Memory Management & Garbage Collection question for Systems Engineer so far. Browse the other topics in this category, or practice this one interactively.