public class RunTimeKits extends Object
| 构造器和说明 |
|---|
RunTimeKits() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
getCpuNumber()
获取CPU核数
|
static String |
getJvmArguments()
返回输入的JVM参数列表
|
static int |
getPid()
获得当前进程的PID
当失败时返回-1
|
static Duration |
getUpTime()
返回应用启动到现在的时间
|
Copyright © 2020. All rights reserved.