Multiple choice technology web technology

How to monitor garbage collection?

  1. Using weblogic.Admin utility with parameter GC=True

  2. Examining Domain Log

  3. Starting JVM using –verbose:gcswitch

  4. None

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

Garbage collection monitoring is done at the JVM level by starting with the -verbose:gc flag (or -XX:+PrintGCDetails in newer JVMs). This prints GC activity to stdout. The weblogic.Admin utility doesn't have a GC parameter, and examining logs shows results but doesn't actively monitor.