public class RuntimeInfoTools extends Object
Constructor and Description |
---|
RuntimeInfoTools() |
Modifier and Type | Method and Description |
---|---|
static long |
getFreeMemory()
获得JVM已分配内存中的剩余空间
|
static long |
getMaxMemory()
获得JVM最大可用内存
|
static Runtime |
getRuntime()
获得运行时对象
|
static long |
getTotalMemory()
获得JVM已分配内存
|
static long |
getUsableMemory()
获得JVM最大可用内存
|
public static long getMaxMemory()
public static long getTotalMemory()
public static long getFreeMemory()
public static long getUsableMemory()
Copyright © 2018. All rights reserved.