public class JMXSupport extends Object
In JMX terms, the Jikes RVM provides only one memory manager (the garbage collector) and several memory pools (each of which corresponds to exactly one MMTk space).
NOTE: Features related to memory usage are currently not implemented.
Modifier and Type | Field and Description |
---|---|
private static String[] |
garbageCollectorNames
We only provide one garbage collector because the choice of garbage collector
for the VM is fixed at build time.
|
private static int |
lastMMTkVerbosity
The level of verbosity that was used in MMTk when verbosity was switched off.
|
private static String[] |
memoryManagerNames
The names of all memory managers that are not garbage collectors.
|
private static String[] |
poolNames |
private static HashMap<String,Integer> |
pools
Maps a space name to its index in the space array.
|
Constructor and Description |
---|
JMXSupport() |
Modifier and Type | Method and Description |
---|---|
static void |
fullyBootedVM()
Initializes data structures.
|
static long |
getCollectionCount() |
static long |
getCollectionTime() |
static long |
getComittedBytes(Space space) |
static String[] |
getGarbageCollectorNames() |
static String[] |
getMemoryManagerNames() |
static String[] |
getMemoryManagerNames(String poolName) |
static int |
getObjectPendingFinalizationCount() |
static long |
getPoolExtent(Space space) |
static String[] |
getPoolNames() |
static long |
getReservedBytes(Space space) |
private static Space |
getSpace(String poolName) |
static MemoryType |
getType(String poolName)
Returns non-heap for immortal spaces and heap for non-immortal
spaces because objects can be added and remove from non-immortal
spaces.
|
static MemoryUsage |
getUsage(boolean immortal) |
static MemoryUsage |
getUsage(String poolName) |
static boolean |
isMMTkVerbose() |
static boolean |
isValid(String poolName) |
static void |
setMMTkVerbose(boolean verbose)
Sets the verbosity for MMTk.
|
private static final String[] garbageCollectorNames
private static final String[] memoryManagerNames
private static HashMap<String,Integer> pools
private static int lastMMTkVerbosity
public JMXSupport()
public static void fullyBootedVM()
public static String[] getGarbageCollectorNames()
public static String[] getMemoryManagerNames()
public static String[] getMemoryManagerNames(String poolName)
poolName
- the name of the poolpublic static String[] getPoolNames()
public static MemoryType getType(String poolName)
poolName
- the pool's namepublic static boolean isValid(String poolName)
poolName
- a memory pool namepublic static long getReservedBytes(Space space)
public static long getComittedBytes(Space space)
public static long getPoolExtent(Space space)
public static MemoryUsage getUsage(boolean immortal)
public static MemoryUsage getUsage(String poolName)
public static int getObjectPendingFinalizationCount()
public static boolean isMMTkVerbose()
public static void setMMTkVerbose(boolean verbose)
verbose
- true
if verbosity is to be enabled,
false
otherwisepublic static long getCollectionCount()
public static long getCollectionTime()