Multiple choice technology web technology

In a multi-server WebLogic domain, monitoring the JVM statistics showed frequent full garbage collections (gc) on one of the server instances. Which one of the following would greatly reduce the frequency of fullgcs?

  1. Increasing the young object space in the heap

  2. Turning the -verbosegc flag on

  3. Adding more servers to the domain

  4. Running more servers per machine

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Full garbage collections occur when the tenured generation fills up. By increasing the young generation (new/eden) space, more objects can be allocated and die young in that space, reducing promotion to tenured space. This significantly reduces full GC frequency. The -verbosegc flag only enables logging (B). Adding more servers doesn't address the heap sizing issue (C, D).