MemoryMXBean


MemoryMXBean java.lang.management

Java 5.0

This MXBean interface allows monitoring of current memory usage information for heap memory (allocated objects) and nonheap memory (loaded classes and libraries). It also allows the garbage collector to be explicitly invoked and verbose garbage-collection related output to be turned on or off.

See MemoryUsage for details on how memory usage information is returned. See also MemoryPoolMXBean for a way to obtain both current and peak memory usage for individual memory pools.

 public interface  MemoryMXBean  {  // Public Instance Methods  void  gc  ( );        MemoryUsage  getHeapMemoryUsage  ( );        MemoryUsage  getNonHeapMemoryUsage  ( );        int  getObjectPendingFinalizationCount  ( );        boolean  isVerbose  ( );        void  setVerbose  (boolean  value  );   } 

Returned By

ManagementFactory.getMemoryMXBean( )



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net