Garbage Collection · interview question
In Java, what is a common cause for increased full GC frequency during high traffic periods?
Multiple choiceMediumchapter-14-curatedpremiumgarbage-collectiongenerational-gc
Answer and explanation
Correct answer
D. Increased object creation leading to rapid Old Generation filling.
Why
During high traffic, the increased rate of object creation can lead to more objects surviving Minor GCs and getting promoted to the Old Generation, thus filling it up faster and triggering more frequent full GCs.
Test yourself on Garbage Collection
A free test with instant, explained results. No account needed.
More Garbage Collection questions
- In a Generational Garbage Collector, what triggers an object to move from the Young Generation to the Old Generation?
- Why does Generational Garbage Collection help in practice?
- In the context of the Weak Generational Hypothesis, which statement is true about object lifespans?
- Why might a Java application experience increased garbage collection times during high traffic?
- Which Java tool is used to capture a thread dump?
- How does the G1 Garbage Collector differ from traditional Generational Garbage Collection?