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