Name

ClassLoadingMXBean

Synopsis

This MXBean interface defines methods for determining how many classes are currently loaded in the Java VM, how many have ever been loaded, and how many have ever been unloaded. The setVerbose( ) method turns verbose class loading output from the VM on or off.

public interface ClassLoadingMXBean {
// Public Instance Methods
     int getLoadedClassCount( );  
     long getTotalLoadedClassCount( );  
     long getUnloadedClassCount( );  
     boolean isVerbose( );  
     void setVerbose(boolean value);  
}

Returned By

ManagementFactory.getClassLoadingMXBean( )

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.