All 48 questions

  1. How would you identify and fix a memory leak in a web application back end? What tools and methodologies would you use?

    Asked in 2 of 335 interviews · last asked Nov 5 · Scenario · Senior

    Other ways it was asked
    • “If you had a memory leak, how would you investigate it, and what tools or techniques would you use?”
  2. When working on a feature that requires complex state management or high-frequency updates, what is your process for optimizing performance and preventing memory leaks in a React and TypeScript environment?

    Asked once · last asked Apr 16 · Scenario · Senior

    Other ways it was asked
    • “In a React and TypeScript feature with complex state or frequent updates, how would you identify and address performance bottlenecks or potential memory leaks?”
  3. A hot path in your service is allocating heavily and pressuring the garbage collector. How would you minimize allocations and improve cache efficiency?

    Asked once · last asked Mar 16 · Scenario · Senior

  4. How would you investigate a PHP memory leak in a long-running process whose memory usage keeps increasing?

    Asked once · last asked Mar 27 · Scenario · Senior

  5. How would you investigate a sudden increase in memory usage when the cause is unknown?

    Asked once · last asked Apr 13 · Scenario · Senior

  6. How would you capture a Java heap dump or heap histogram to investigate memory usage?

    Asked once · last asked Apr 13 · Tooling · Senior

  7. How do you profile a Java application to investigate memory or performance issues?

    Asked once · last asked May 25 · Scenario · Mid-level

  8. What practical implications does NumPy operating in C have for performance and memory compared with Python lists?

    Asked once · last asked Jun 3 · Concept · Mid-level

  9. When increasing memory is only a short-term fix for a Node.js application, what long-term fixes would you consider?

    Asked once · last asked Jun 12 · Scenario · Mid-level

  10. When debugging a complex system in C++ or optimizing a heavily populated scene in a game engine, what is your approach to identifying and fixing memory bottlenecks or frame-rate drops?

    Asked once · last asked Jun 29 · Scenario · Senior

  11. In a UITableView or UICollectionView showing remote images, what specific steps do you take to prevent off-screen image decode and resizing from blocking the main thread while keeping memory stable?

    Asked once · last asked Jul 20 · Tooling · Senior

  12. Specifically, what would you do about decode/downsampling, memory and caching, and canceling requests on view recycling in Android RecyclerView?

    Asked once · last asked Jul 20 · Tooling · Senior

  13. When you implement your own image loader, how do you calculate an appropriate inSampleSize and choose the target decode size based on the view's measured dimensions and screen density?

    Asked once · last asked Jul 20 · Tooling · Senior

  14. Which operating system metrics are most important to monitor?

    Asked once · last asked Jul 27 · Concept · Junior

  15. Suppose you see rising p95 latency and memory in a Node.js API over several hours with no deploys. What is your step-by-step approach to confirm a memory leak and pinpoint the source?

    Asked once · last asked Jul 27 · Scenario · Senior

  16. When you compare heap snapshots, what specific signs do you look for, for example object types and retainers? And how do you trace them back to the owning module or request path?

    Asked once · last asked Jul 27 · Scenario · Senior

  17. In a Next.js app, what are the most common ways memory leaks happen on the server side around SSR or API routes, and what would you check first?

    Asked once · last asked Jul 27 · Scenario · Senior

  18. How would you profile and fix a memory issue in a PHP or Ruby on Rails application?

    Asked once · last asked Jul 27 · Scenario · Senior

  19. In pandas, how would you replace missing values in the `review_text` column with an empty string in place to save memory? Which operation is most appropriate, and why?

    Asked once · last asked Aug 1 · Tooling · Junior

  20. How do you debug a memory leak in a long-running service?

    Asked once · last asked Aug 14 · Scenario · Senior

  21. When you have a heap snapshot, how do you decide whether the top retained-size objects represent a real leak versus expected caching?

    Asked once · last asked Aug 14 · Scenario · Senior

  22. In a tight loop over a large list, what kinds of changes typically improve performance without changing complexity, such as reducing allocations or changing data structures or branch behavior?

    Asked once · last asked Aug 14 · Concept · Senior

  23. How do you troubleshoot a memory leak in a Kubernetes application?

    Asked once · last asked Sep 4 · Scenario · Senior

  24. Why might available memory remain low after garbage collection in Unity?

    Asked once · last asked Sep 8 · Scenario · Senior

  25. When configuring and managing system resources on NixOS, how do you ensure efficient memory management and optimize performance for low-level development tasks?

    Asked once · last asked Sep 16 · Tooling · Senior

  26. How can tools such as Valgrind help detect memory leaks and diagnose memory-safety or synchronization issues in multithreaded NixOS applications?

    Asked once · last asked Sep 16 · Tooling · Senior

  27. How would you track cache evictions and memory pressure if Redis is handling high-volume data?

    Asked once · last asked Sep 21 · Tooling · Senior

  28. How would you track memory growth and prevent leaks in an asynchronous environment?

    Asked once · last asked Sep 24 · Scenario · Mid-level

    Other ways it was asked
    • “How would you keep track of memory growth and prevent leaks in this asynchronous environment?”
  29. How would you test for memory leaks and ensure your retry logic doesn't introduce subtle retention issues?

    Asked once · last asked Sep 24 · Scenario · Senior

  30. What .NET tools or techniques can help optimize memory usage, and how do they work?

    Asked once · last asked Oct 2 · Concept · Senior

  31. How do you debug and fix a memory leak in a long-running single-page application caused by event listeners or timers, and what steps and tooling do you use?

    Asked once · last asked Oct 3 · Scenario · Senior

  32. How would you quickly check whether a server is experiencing a CPU, memory, or disk problem?

    Asked once · last asked Oct 7 · Scenario · Mid-level

  33. How would you find and fix a memory leak in C using malloc and free?

    Asked once · last asked Oct 14 · Scenario · Junior

  34. In Java, how does ThreadLocal work, and what's a common production issue it can cause in application servers or thread pools?

    Asked once · last asked Oct 17 · Concept · Senior

  35. If an app repeatedly crashes in production because of excessive memory usage or cached data, what steps would you take to reduce its crash rate?

    Asked once · last asked Oct 19 · Scenario · Senior

  36. How would you monitor CPU and memory usage on an ESP32, and what trade-offs would you consider?

    Asked once · last asked Oct 21 · Scenario · Senior

    Other ways it was asked
    • “How did you monitor CPU and memory usage on the ESP32, and what trade-offs did you consider?”
  37. What is your approach to memory leaks and ANRs in production, and which tools do you rely on?

    Asked once · last asked Oct 23 · Scenario · Senior

  38. How would you begin isolating a memory leak when ten modules are running in one process and the source is unknown?

    Asked once · last asked Nov 12 · Scenario · Senior

    Other ways it was asked
    • “How would you isolate a memory leak among ten modules running in one process without a profiler or developer tools?”
  39. In Java microservices, if memory usage is high, what tools would you use to monitor JVM memory, and how would you tune garbage collection?

    Asked once · last asked Oct 28 · Scenario · Senior

  40. How do you identify and address performance bottlenecks that require algorithm or memory tuning?

    Asked once · last asked Nov 3 · Scenario · Senior

  41. In Defold, when you have many enemies or bullets, how do you decide between spawning game objects dynamically versus using object pools?

    Asked once · last asked Nov 5 · Concept · Mid-level

  42. When you suspect Lua GC spikes in Defold, what specific steps do you take to confirm the cause and reduce allocations without hiding real issues?

    Asked once · last asked Nov 5 · Scenario · Senior

  43. Your API's memory keeps increasing throughout the day and resets after a restart. How would you investigate a possible memory leak?

    Asked once · last asked Nov 17 · Scenario · Senior

  44. In an Electron desktop app that slowly grows in memory over hours, how would you isolate whether the leak is in the renderer, main process, or native modules?

    Asked once · last asked Nov 20 · Scenario · Senior

  45. Once you suspect a renderer leak, what specific tools and signals do you use to confirm it, such as heap snapshots, allocation timelines, and the patterns you look for?

    Asked once · last asked Nov 20 · Tooling · Senior

  46. How would you diagnose and resolve a Node.js memory issue?

    Asked once · last asked Jun 12 · Scenario · Mid-level

  47. What improvements or optimizations are commonly needed in C-based mini shells and client-server systems?

    Asked once · last asked Oct 21 · Concept · Mid-level

  48. What is a memory leak?

    Asked once · last asked Nov 10 · Concept · Junior

More Operating Systems interview questions

How this list is made

Every question here was asked by a real interviewer in a real job interview that a candidate ran MeetAssist in. After the call, the interviewer's questions are pulled from the transcript. Practice sessions, tests, exams and anything that was not a job interview are dropped.

Questions are rewritten so they make sense on their own: names of people, employers and clients are removed, and speech-to-text mistakes are fixed. Small talk, logistics and questions about one candidate's own résumé are left out. Rephrasings of the same question are merged, and the count is the number of different interviews it came up in.

The interviews come from candidates who use MeetAssist, so they lean towards software, data and AI roles: the shares describe these interviews, not every Operating Systems interview. Answers to the most asked questions are written and checked by an editor; a "common mistake" is shown only when reviews of real answers in these interviews show it, with the count.

335 interviews, 268 candidates, Dec 2025 to Nov 2026. Updated every month with new interviews.