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)
- 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
- How does G1GC determine which regions of the heap to collect during a garbage collection cycle?Multiple choiceHard
- What diagnostic tool can be used to analyze heap memory usage in the JVM?Multiple choiceMedium
- Which tool would you use to generate a heap dump in a running JVM?Multiple choiceEasy
- How can a Heap Dump help diagnose memory leaks?Multiple choiceEasy
- What happens when the JVM encounters a java.lang.OutOfMemoryError: Metaspace?Multiple choiceEasy
- When analyzing a Heap Dump, which of the following could indicate a memory leak?Multiple choiceMedium
- What happens during a 'Stop-The-World' pause in the JVM?Multiple choiceEasy
- In a multi-threaded Java application, how might a Thread Dump help diagnose performance issues related to a high traffic event?Multiple choiceHard
- Which tool would you use to capture a snapshot of the JVM's memory for analysis?Multiple choiceMedium
- What does the 'jmap' command do in the context of JVM diagnostics?Multiple choiceEasy
- What does the term 'full GC' refer to in Java garbage collection?Multiple choiceEasy
- Which generation in the JVM is primarily affected by minor garbage collection events?Multiple choiceMedium
- How does the G1 Garbage Collector achieve its goal of predictable pause times?Multiple choiceMedium
- Which command can you use to generate a Heap Dump in a running Java application?Multiple choiceMedium
- Which JVM memory area is primarily affected during a Stop-The-World (STW) pause?Multiple choiceEasy
- Why does 'Stop-The-World' pauses in Java garbage collection matter in practice?Multiple choiceEasy