Skip to content
Sharp

Performance Tuning interview questions

Garbage Collection Basics, OutOfMemoryErrors, Stop-The-World Pauses, Thread Dumps

67 questions with answers and explanations · 67 flashcards

Questions (page 2 of 2)

  1. A checkout endpoint slows down during peak traffic, but heap usage returns close to baseline after each spike. What is the most likely JVM issue?Multiple choiceEasy
  2. How does G1GC determine which regions of the heap to collect during a garbage collection cycle?Multiple choiceHard
  3. What diagnostic tool can be used to analyze heap memory usage in the JVM?Multiple choiceMedium
  4. Which tool would you use to generate a heap dump in a running JVM?Multiple choiceEasy
  5. How can a Heap Dump help diagnose memory leaks?Multiple choiceEasy
  6. What happens when the JVM encounters a java.lang.OutOfMemoryError: Metaspace?Multiple choiceEasy
  7. When analyzing a Heap Dump, which of the following could indicate a memory leak?Multiple choiceMedium
  8. What happens during a 'Stop-The-World' pause in the JVM?Multiple choiceEasy
  9. In a multi-threaded Java application, how might a Thread Dump help diagnose performance issues related to a high traffic event?Multiple choiceHard
  10. Which tool would you use to capture a snapshot of the JVM's memory for analysis?Multiple choiceMedium
  11. What does the 'jmap' command do in the context of JVM diagnostics?Multiple choiceEasy
  12. What does the term 'full GC' refer to in Java garbage collection?Multiple choiceEasy
  13. Which generation in the JVM is primarily affected by minor garbage collection events?Multiple choiceMedium
  14. How does the G1 Garbage Collector achieve its goal of predictable pause times?Multiple choiceMedium
  15. Which command can you use to generate a Heap Dump in a running Java application?Multiple choiceMedium
  16. Which JVM memory area is primarily affected during a Stop-The-World (STW) pause?Multiple choiceEasy
  17. Why does 'Stop-The-World' pauses in Java garbage collection matter in practice?Multiple choiceEasy