Multiple choice technology web technology

How to monitor garbage collection?

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

  2. b. Examining Domain Log

  3. c. Starting JVM using –verbose:gcswitch

  4. d. None of the above

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

The -verbose:gc JVM flag causes the Java Virtual Machine to output detailed information about each garbage collection event, including timing statistics and memory reclaimed. This is a standard JVM feature independent of any WebLogic-specific tools or utilities - the GC information appears in the JVM's stdout/stderr, not WebLogic logs.