API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.lang.management. MemoryUsage View Source
Author(s)
Mandy Chung
Since
1.5
Version
1.17, 11/17/05
Serial
Hierarchy
 Object
      MemoryUsage
Implements
Subclasses
Description
public class MemoryUsage
  A MemoryUsage object represents a snapshot of memory usage.
See also:   
Constructors
private MemoryUsage (CompositeData cd)
Constructs a MemoryUsage object from a CompositeData.
public MemoryUsage (long init, long used, long committed, long max)
  Constructs a MemoryUsage object.
Methods
Hide/Show inherited methods
publicstatic MemoryUsage from (CompositeData cd)
  Returns a MemoryUsage object represented by the given CompositeData.
public long getCommitted ()
  Returns the amount of memory in bytes that is committed for the Java virtual machine to use.
public long getInit ()
  Returns the amount of memory in bytes that the Java virtual machine initially requests from the operating system for memory management.
public long getMax ()
  Returns the maximum amount of memory in bytes that can be used for memory management.
public long getUsed ()
  Returns the amount of used memory in bytes.
public String toString ()
Returns a descriptive representation of this memory usage.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar