public class RuntimeUtil
extends java.lang.Object
Constructor and Description |
---|
RuntimeUtil() |
Modifier and Type | Method and Description |
---|---|
static long |
availableMemory()
Returns the amount of available memory (free memory plus never allocated memory).
|
static float |
availableMemoryPercent()
Returns the amount of available memory in percents.
|
static java.lang.String |
classLocation(java.lang.Class clazz)
Returns location of the class.
|
static void |
compactMemory()
Compacts memory as much as possible by allocating huge memory block
and then forcing garbage collection.
|
static java.lang.String |
joddLocation()
Returns Jodd
location . |
public static long availableMemory()
public static float availableMemoryPercent()
public static void compactMemory()
public static java.lang.String classLocation(java.lang.Class clazz)
public static java.lang.String joddLocation()
location
.classLocation(java.lang.Class)
Copyright © 2003-2013 Jodd Team