Uses of Class com.sun.management.GcInfo (Monitoring and Management Interface for the Java Platform )
Date: 2026-01-21

## Uses of Class
com.sun.management.GcInfo

- - ### Uses of GcInfo in com.sun.management

    Methods in com.sun.management that return GcInfo
    Modifier and Type | Method and Description
    --- | ---
    `static GcInfo` | GcInfo.`from(CompositeData cd)` Returns a `GcInfo` object represented by the given `CompositeData`.
    `GcInfo` | GarbageCollectionNotificationInfo.`getGcInfo()` Returns the GC information related to the last garbage collection
    `GcInfo` | GarbageCollectorMXBean.`getLastGcInfo()` Returns the GC information about the most recent GC.

    Constructors in com.sun.management with parameters of type GcInfo
    Constructor and Description
    `GarbageCollectionNotificationInfo(String gcName, String gcAction, String gcCause, GcInfo gcInfo)` Constructs a `GarbageCollectionNotificationInfo` object.

Copyright © 2003, 2026, Oracle and/or its affiliates. All rights reserved.