Sigar全名是System Information Gatherer And Reporter,中文名是系统信息收集和报表工具。是一个开源的工具,提供了跨平台的系统信息收集的API ,用来收集系统和处理信息,这些平台包括:Linux,Windows,Solaris,AIX,HP-UX,FreeBSD和Mac OSX
<!-- sigar服务器监控 -->
<dependency>
<groupId>org.hyperic</groupId>
<artifactId>sigar</artifactId>
<version>1.6.5.132</version>
</dependency>
配置系统dll or so
Windows:解压hyperic-sigar-1.6.4.zip,提取其\hyperic-sigar-1.6.4\sigar-bin\lib路径下的sigar-amd64-winnt.dll或sigar-x86-winnt.dll至window系统路径C:\Windows\System32下
linux环境下: 解压hyperic-sigar-1.6.4.zip,将libsigar-amd64-linux.so或libsigar-x86-linux.so拷贝至linux目录下的/usr/lib中即可。
package cn.ch3nnn.adminblog.utils;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Map;
import java.util.Properties;
import org.hyperic.sigar.CpuInfo;
import org.hyperic.sigar.CpuPerc;
import org.hyperic.sigar.FileSystem;
import org.hyperic.sigar.FileSystemUsage;
import org.hyperic.sigar.Mem;
import org.hyperic.sigar.NetFlags;
import org.hyperic.sigar.NetInterfaceConfig;
import org.hyperic.sigar.NetInterfaceStat;
import org.hyperic.sigar.OperatingSystem;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.SigarException;
import org.hyperic.sigar.Swap;
import org.hyperic.sigar.Who;
/**
* 使用Sigar获取
*/
public class OSUtils {
public static void main(String[] args) {
try {
// System信息,从jvm获取
property();
System.out.println("----------------------------------");
// cpu信息
cpu();
System.out.println("----------------------------------");
// 内存信息
memory();
System.out.println("----------------------------------");
// 操作系统信息
os();
System.out.println("----------------------------------");
// 用户信息
who();
System.out.println("----------------------------------");
// 文件系统信息
file();
System.out.println("----------------------------------");
// 网络信息
net();
System.out.println("----------------------------------");
// 以太网信息
ethernet();
System.out.println("----------------------------------");
} catch (Exception e1) {
e1.printStackTrace();
}
}
private static void property() throws UnknownHostException {
Runtime r = Runtime.getRuntime();
Properties props = System.getProperties();
InetAddress addr;
addr = InetAddress.getLocalHost();
String ip = addr.getHostAddress();
Map<String, String> map = System.getenv();
// 获取用户名
String userName = map.get("USERNAME");
// 获取计算机名
String computerName = map.get("COMPUTERNAME");
// 获取计算机域名
String userDomain = map.get("USERDOMAIN");
System.out.println("用户名: " + userName);
System.out.println("计算机名: " + computerName);
System.out.println("计算机域名: " + userDomain);
System.out.println("本地ip地址: " + ip);
System.out.println("本地主机名: " + addr.getHostName());
System.out.println("JVM可以使用的总内存: " + r.totalMemory());
System.out.println("JVM可以使用的剩余内存: " + r.freeMemory());
System.out.println("JVM可以使用的处理器个数: " + r.availableProcessors());
System.out.println("Java的运行环境版本: " + props.getProperty("java.version"));
System.out.println("Java的运行环境供应商: " + props.getProperty("java.vendor"));
System.out.println("Java供应商的URL: " + props.getProperty("java.vendor.url"));
System.out.println("Java的安装路径: " + props.getProperty("java.home"));
System.out.println("Java的虚拟机规范版本: " + props.getProperty("java.vm.specification.version"));
System.out.println("Java的虚拟机规范供应商: " + props.getProperty("java.vm.specification.vendor"));
System.out.println("Java的虚拟机规范名称: " + props.getProperty("java.vm.specification.name"));
System.out.println("Java的虚拟机实现版本: " + props.getProperty("java.vm.version"));
System.out.println("Java的虚拟机实现供应商: " + props.getProperty("java.vm.vendor"));
System.out.println("Java的虚拟机实现名称: " + props.getProperty("java.vm.name"));
System.out.println("Java运行时环境规范版本: " + props.getProperty("java.specification.version"));
System.out.println("Java运行时环境规范供应商: " + props.getProperty("java.specification.vender"));
System.out.println("Java运行时环境规范名称: " + props.getProperty("java.specification.name"));
System.out.println("Java的类格式版本号: " + props.getProperty("java.class.version"));
System.out.println("Java的类路径: " + props.getProperty("java.class.path"));
System.out.println("加载库时搜索的路径列表: " + props.getProperty("java.library.path"));
System.out.println("默认的临时文件路径: " + props.getProperty("java.io.tmpdir"));
System.out.println("一个或多个扩展目录的路径: " + props.getProperty("java.ext.dirs"));
System.out.println("操作系统的名称: " + props.getProperty("os.name"));
System.out.println("操作系统的构架: " + props.getProperty("os.arch"));
System.out.println("操作系统的版本: " + props.getProperty("os.version"));
System.out.println("文件分隔符: " + props.getProperty("file.separator"));
System.out.println("路径分隔符: " + props.getProperty("path.separator"));
System.out.println("行分隔符: " + props.getProperty("line.separator"));
System.out.println("用户的账户名称: " + props.getProperty("user.name"));
System.out.println("用户的主目录: " + props.getProperty("user.home"));
System.out.println("用户的当前工作目录: " + props.getProperty("user.dir"));
}
private static void memory() throws SigarException {
Sigar sigar = new Sigar();
Mem mem = sigar.getMem();
// 内存总量
System.out.println("内存总量: " + mem.getTotal() / 1024L + "K av");
// 当前内存使用量
System.out.println("当前内存使用量: " + mem.getUsed() / 1024L + "K used");
// 当前内存剩余量
System.out.println("当前内存剩余量: " + mem.getFree() / 1024L + "K free");
Swap swap = sigar.getSwap();
// 交换区总量
System.out.println("交换区总量: " + swap.getTotal() / 1024L + "K av");
// 当前交换区使用量
System.out.println("当前交换区使用量: " + swap.getUsed() / 1024L + "K used");
// 当前交换区剩余量
System.out.println("当前交换区剩余量: " + swap.getFree() / 1024L + "K free");
}
private static void cpu() throws SigarException {
Sigar sigar = new Sigar();
CpuInfo[] infos = sigar.getCpuInfoList();
CpuPerc[] cpuList = null;
cpuList = sigar.getCpuPercList();
// 不管是单块CPU还是多CPU都适用
for (int i = 0; i < infos.length; i++) {
CpuInfo info = infos[i];
System.out.println("第" + (i + 1) + "块CPU信息");
System.out.println("CPU的总量MHz: " + info.getMhz());
System.out.println("CPU生产商: " + info.getVendor());
System.out.println("CPU类别: " + info.getModel());
System.out.println("CPU缓存数量: " + info.getCacheSize());
printCpuPerc(cpuList[i]);
}
}
private static void printCpuPerc(CpuPerc cpu) {
System.out.println("CPU用户使用率: " + CpuPerc.format(cpu.getUser()));
System.out.println("CPU系统使用率: " + CpuPerc.format(cpu.getSys()));
System.out.println("CPU当前等待率: " + CpuPerc.format(cpu.getWait()));
System.out.println("CPU当前错误率: " + CpuPerc.format(cpu.getNice()));
System.out.println("CPU当前空闲率: " + CpuPerc.format(cpu.getIdle()));
System.out.println("CPU总的使用率: " + CpuPerc.format(cpu.getCombined()));
}
private static void os() {
OperatingSystem OS = OperatingSystem.getInstance();
// 操作系统内核类型如: 386、486、586等x86
System.out.println("操作系统: " + OS.getArch());
System.out.println("操作系统CpuEndian(): " + OS.getCpuEndian());
System.out.println("操作系统DataModel(): " + OS.getDataModel());
// 系统描述
System.out.println("操作系统的描述: " + OS.getDescription());
// 操作系统类型
// System.out.println("OS.getName(): " + OS.getName());
// System.out.println("OS.getPatchLevel(): " + OS.getPatchLevel());//
// 操作系统的卖主
System.out.println("操作系统的卖主: " + OS.getVendor());
// 卖主名称
System.out.println("操作系统的卖主名: " + OS.getVendorCodeName());
// 操作系统名称
System.out.println("操作系统名称: " + OS.getVendorName());
// 操作系统卖主类型
System.out.println("操作系统卖主类型: " + OS.getVendorVersion());
// 操作系统的版本号
System.out.println("操作系统的版本号: " + OS.getVersion());
}
private static void who() throws SigarException {
Sigar sigar = new Sigar();
Who[] who = sigar.getWhoList();
if (who != null && who.length > 0) {
for (int i = 0; i < who.length; i++) {
Who _who = who[i];
System.out.println("用户控制台: " + _who.getDevice());
System.out.println("用户host: " + _who.getHost());
// 当前系统进程表中的用户名
System.out.println("当前系统进程表中的用户名: " + _who.getUser());
}
}
}
private static void file() throws Exception {
Sigar sigar = new Sigar();
FileSystem[] fslist = sigar.getFileSystemList();
try {
for (int i = 0; i < fslist.length; i++) {
System.out.println("分区的盘符名称" + i);
FileSystem fs = fslist[i];
// 分区的盘符名称
System.out.println("盘符名称: " + fs.getDevName());
// 分区的盘符名称
System.out.println("盘符路径: " + fs.getDirName());
System.out.println("盘符标志: " + fs.getFlags());
// 文件系统类型,比如 FAT32、NTFS
System.out.println("盘符类型: " + fs.getSysTypeName());
// 文件系统类型名,比如本地硬盘、光驱、网络文件系统等
System.out.println("盘符类型名: " + fs.getTypeName());
// 文件系统类型
System.out.println("盘符文件系统类型: " + fs.getType());
FileSystemUsage usage = null;
usage = sigar.getFileSystemUsage(fs.getDirName());
switch (fs.getType()) {
case 0: // TYPE_UNKNOWN :未知
break;
case 1: // TYPE_NONE
break;
case 2: // TYPE_LOCAL_DISK : 本地硬盘
// 文件系统总大小
System.out.println(fs.getDevName() + "总大小: " + usage.getTotal() + "KB");
// 文件系统剩余大小
System.out.println(fs.getDevName() + "剩余大小: " + usage.getFree() + "KB");
// 文件系统可用大小
System.out.println(fs.getDevName() + "可用大小: " + usage.getAvail() + "KB");
// 文件系统已经使用量
System.out.println(fs.getDevName() + "已经使用量: " + usage.getUsed() + "KB");
double usePercent = usage.getUsePercent() * 100D;
// 文件系统资源的利用率
System.out.println(fs.getDevName() + "资源的利用率: " + usePercent + "%");
break;
case 3:// TYPE_NETWORK :网络
break;
case 4:// TYPE_RAM_DISK :闪存
break;
case 5:// TYPE_CDROM :光驱
break;
case 6:// TYPE_SWAP :页面交换
break;
}
System.out.println(fs.getDevName() + "读出: " + usage.getDiskReads());
System.out.println(fs.getDevName() + "写入: " + usage.getDiskWrites());
}
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
}
return;
}
private static void net() throws Exception {
Sigar sigar = new Sigar();
String[] ifNames = sigar.getNetInterfaceList();
for (String name : ifNames) {
NetInterfaceConfig ifconfig = sigar.getNetInterfaceConfig(name);
System.out.println("网络设备名: " + name);
System.out.println("IP地址: " + ifconfig.getAddress());
System.out.println("子网掩码: " + ifconfig.getNetmask());
if ((ifconfig.getFlags() & 1L) <= 0L) {
System.out.println("!IFF_UP...skipping getNetInterfaceStat");
continue;
}
NetInterfaceStat ifstat = sigar.getNetInterfaceStat(name);
System.out.println(name + "接收的总包裹数:" + ifstat.getRxPackets());
System.out.println(name + "发送的总包裹数:" + ifstat.getTxPackets());
System.out.println(name + "接收到的总字节数:" + ifstat.getRxBytes());
System.out.println(name + "发送的总字节数:" + ifstat.getTxBytes());
System.out.println(name + "接收到的错误包数:" + ifstat.getRxErrors());
System.out.println(name + "发送数据包时的错误数:" + ifstat.getTxErrors());
System.out.println(name + "接收时丢弃的包数:" + ifstat.getRxDropped());
System.out.println(name + "发送时丢弃的包数:" + ifstat.getTxDropped());
}
}
private static void ethernet() throws SigarException {
Sigar sigar = null;
sigar = new Sigar();
String[] ifaces = sigar.getNetInterfaceList();
for (String iface : ifaces) {
NetInterfaceConfig cfg = sigar.getNetInterfaceConfig(iface);
if (NetFlags.LOOPBACK_ADDRESS.equals(cfg.getAddress()) || (cfg.getFlags() & NetFlags.IFF_LOOPBACK) != 0
|| NetFlags.NULL_HWADDR.equals(cfg.getHwaddr())) {
continue;
}
System.out.println(cfg.getName() + "IP地址:" + cfg.getAddress());
System.out.println(cfg.getName() + "网关广播地址:" + cfg.getBroadcast());
System.out.println(cfg.getName() + "网卡MAC地址:" + cfg.getHwaddr());
System.out.println(cfg.getName() + "子网掩码:" + cfg.getNetmask());
System.out.println(cfg.getName() + "网卡描述信息:" + cfg.getDescription());
System.out.println(cfg.getName() + "网卡类型" + cfg.getType());
}
}
}
E:\jdk8\bin\java.exe "-javaagent:E:\IntelliJ IDEA 2021.1.3\lib\idea_rt.jar=58962:E:\IntelliJ IDEA 2021.1.3\bin" -Dfile.encoding=UTF-8 -classpath E:\jdk8\lib\ant-javafx.jar;E:\jdk8\lib\dt.jar;E:\jdk8\lib\ext\cldrdata.jar;E:\jdk8\lib\ext\localedata.jar;E:\jdk8\lib\javafx-mx.jar;E:\jdk8\lib\jconsole.jar;E:\jdk8\lib\packager.jar;E:\jdk8\lib\sa-jdi.jar;E:\jdk8\lib\tools.jar;C:\Users\mayn\Desktop\adminblog\target\classes;D:\server\MavenRepository\maven_jar\org\springframework\boot\spring-boot-starter-data-jpa\2.5.2\spring-boot-starter-data-jpa-2.5.2.jar;D:\server\MavenRepository\maven_jar\org\springframework\boot\spring-boot-starter-aop\2.5.2\spring-boot-starter-aop-2.5.2.jar;D:\server\MavenRepository\maven_jar\org\springframework\spring-aop\5.3.8\spring-aop-5.3.8.jar;D:\server\MavenRepository\maven_jar\org\aspectj\aspectjweaver\1.9.6\aspectjweaver-1.9.6.jar;D:\server\MavenRepository\maven_jar\org\springframework\boot\spring-boot-starter-jdbc\2.5.2\spring-boot-starter-jdbc-2.5.2.jar;D:\server\MavenRepository\maven_jar\com\zaxxer\HikariCP\4.0.3\HikariCP-4.0.3.jar;D:\server\MavenRepository\maven_jar\org\springframework\spring-jdbc\5.3.8\spring-jdbc-5.3.8.jar;D:\server\MavenRepository\maven_jar\jakarta\transaction\jakarta.transaction-api\1.3.3\jakarta.transaction-api-1.3.3.jar;D:\server\MavenRepository\maven_jar\jakarta\persistence\jakarta.persistence-api\2.2.3\jakarta.persistence-api-2.2.3.jar;D:\server\MavenRepository\maven_jar\org\hibernate\hibernate-core\5.4.32.Final\hibernate-core-5.4.32.Final.jar;D:\server\MavenRepository\maven_jar\org\jboss\logging\jboss-logging\3.4.2.Final\jboss-logging-3.4.2.Final.jar;D:\server\MavenRepository\maven_jar\org\javassist\javassist\3.27.0-GA\javassist-3.27.0-GA.jar;D:\server\MavenRepository\maven_jar\net\bytebuddy\byte-buddy\1.10.22\byte-buddy-1.10.22.jar;D:\server\MavenRepository\maven_jar\antlr\antlr\2.7.7\antlr-2.7.7.jar;D:\server\MavenRepository\maven_jar\org\jboss\jandex\2.2.3.Final\jandex-2.2.3.Final.jar;D:\server\MavenRepository\maven_jar\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;D:\server\MavenRepository\maven_jar\org\dom4j\dom4j\2.1.3\dom4j-2.1.3.jar;D:\server\MavenRepository\maven_jar\org\hibernate\common\hibernate-commons-annotations\5.1.2.Final\hibernate-commons-annotations-5.1.2.Final.jar;D:\server\MavenRepository\maven_jar\org\glassfish\jaxb\jaxb-runtime\2.3.4\jaxb-runtime-2.3.4.jar;D:\server\MavenRepository\maven_jar\org\glassfish\jaxb\txw2\2.3.4\txw2-2.3.4.jar;D:\server\MavenRepository\maven_jar\com\sun\istack\istack-commons-runtime\3.0.12\istack-commons-runtime-3.0.12.jar;D:\server\MavenRepository\maven_jar\com\sun\activation\jakarta.activation\1.2.2\jakarta.activation-1.2.2.jar;D:\server\MavenRepository\maven_jar\org\springframework\data\spring-data-jpa\2.5.2\spring-data-jpa-2.5.2.jar;D:\server\MavenRepository\maven_jar\org\springframework\data\spring-data-commons\2.5.2\spring-data-commons-2.5.2.jar;D:\server\MavenRepository\maven_jar\org\springframework\spring-orm\5.3.8\spring-orm-5.3.8.jar;D:\server\MavenRepository\maven_jar\org\springframework\spring-context\5.3.8\spring-context-5.3.8.jar;D:\server\MavenRepository\maven_jar\org\springframework\spring-tx\5.3.8\spring-tx-5.3.8.jar;D:\server\MavenRepository\maven_jar\org\springframework\spring-beans\5.3.8\spring-beans-5.3.8.jar;D:\server\MavenRepository\maven_jar\org\slf4j\slf4j-api\1.7.31\slf4j-api-1.7.31.jar;D:\server\MavenRepository\maven_jar\org\springframework\spring-aspects\5.3.8\spring-aspects-5.3.8.jar;D:\server\MavenRepository\maven_jar\org\springframework\boot\spring-boot-starter-thymeleaf\2.5.2\spring-boot-starter-thymeleaf-2.5.2.jar;D:\server\MavenRepository\maven_jar\org\springframework\boot\spring-boot-starter\2.5.2\spring-boot-starter-2.5.2.jar;D:\server\MavenRepository\maven_jar\org\springframework\boot\spring-boot-starter-logging\2.5.2\spring-boot-starter-logging-2.5.2.jar;D:\server\MavenRepository\maven_jar\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;D:\server\MavenRepository\maven_jar\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;D:\server\MavenRepository\maven_jar\org\apache\logging\log4j\log4j-to-slf4j\2.14.1\log4j-to-slf4j-2.14.1.jar;D:\server\MavenRepository\maven_jar\org\apache\logging\log4j\log4j-api\2.14.1\log4j-api-2.14.1.jar;D:\server\MavenRepository\maven_jar\org\slf4j\jul-to-slf4j\1.7.31\jul-to-slf4j-1.7.31.jar;D:\server\MavenRepository\maven_jar\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;D:\server\MavenRepository\maven_jar\org\yaml\snakeyaml\1.28\snakeyaml-1.28.jar;D:\server\MavenRepository\maven_jar\org\thymeleaf\thymeleaf-spring5\3.0.12.RELEASE\thymeleaf-spring5-3.0.12.RELEASE.jar;D:\server\MavenRepository\maven_jar\org\thymeleaf\thymeleaf\3.0.12.RELEASE\thymeleaf-3.0.12.RELEASE.jar;D:\server\MavenRepository\maven_jar\org\attoparser\attoparser\2.0.5.RELEASE\attoparser-2.0.5.RELEASE.jar;D:\server\MavenRepository\maven_jar\org\unbescape\unbescape\1.1.6.RELEASE\unbescape-1.1.6.RELEASE.jar;D:\server\MavenRepository\maven_jar\org\thymeleaf\extras\thymeleaf-extras-java8time\3.0.4.RELEASE\thymeleaf-extras-java8time-3.0.4.RELEASE.jar;D:\server\MavenRepository\maven_jar\org\springframework\boot\spring-boot-starter-web\2.5.2\spring-boot-starter-web-2.5.2.jar;D:\server\MavenRepository\maven_jar\org\springframework\boot\spring-boot-starter-json\2.5.2\spring-boot-starter-json-2.5.2.jar;D:\server\MavenRepository\maven_jar\com\fasterxml\jackson\core\jackson-databind\2.12.3\jackson-databind-2.12.3.jar;D:\server\MavenRepository\maven_jar\com\fasterxml\jackson\core\jackson-annotations\2.12.3\jackson-annotations-2.12.3.jar;D:\server\MavenRepository\maven_jar\com\fasterxml\jackson\core\jackson-core\2.12.3\jackson-core-2.12.3.jar;D:\server\MavenRepository\maven_jar\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.12.3\jackson-datatype-jdk8-2.12.3.jar;D:\server\MavenRepository\maven_jar\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.12.3\jackson-datatype-jsr310-2.12.3.jar;D:\server\MavenRepository\maven_jar\com\fasterxml\jackson\module\jackson-module-parameter-names\2.12.3\jackson-module-parameter-names-2.12.3.jar;D:\server\MavenRepository\maven_jar\org\springframework\boot\spring-boot-starter-tomcat\2.5.2\spring-boot-starter-tomcat-2.5.2.jar;D:\server\MavenRepository\maven_jar\org\apache\tomcat\embed\tomcat-embed-core\9.0.48\tomcat-embed-core-9.0.48.jar;D:\server\MavenRepository\maven_jar\org\apache\tomcat\embed\tomcat-embed-el\9.0.48\tomcat-embed-el-9.0.48.jar;D:\server\MavenRepository\maven_jar\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.48\tomcat-embed-websocket-9.0.48.jar;D:\server\MavenRepository\maven_jar\org\springframework\spring-web\5.3.8\spring-web-5.3.8.jar;D:\server\MavenRepository\maven_jar\org\springframework\spring-webmvc\5.3.8\spring-webmvc-5.3.8.jar;D:\server\MavenRepository\maven_jar\org\springframework\spring-expression\5.3.8\spring-expression-5.3.8.jar;D:\server\MavenRepository\maven_jar\org\springframework\boot\spring-boot-devtools\2.5.2\spring-boot-devtools-2.5.2.jar;D:\server\MavenRepository\maven_jar\org\springframework\boot\spring-boot\2.5.2\spring-boot-2.5.2.jar;D:\server\MavenRepository\maven_jar\org\springframework\boot\spring-boot-autoconfigure\2.5.2\spring-boot-autoconfigure-2.5.2.jar;D:\server\MavenRepository\maven_jar\mysql\mysql-connector-java\8.0.25\mysql-connector-java-8.0.25.jar;D:\server\MavenRepository\maven_jar\org\projectlombok\lombok\1.18.20\lombok-1.18.20.jar;D:\server\MavenRepository\maven_jar\jakarta\xml\bind\jakarta.xml.bind-api\2.3.3\jakarta.xml.bind-api-2.3.3.jar;D:\server\MavenRepository\maven_jar\jakarta\activation\jakarta.activation-api\1.2.2\jakarta.activation-api-1.2.2.jar;D:\server\MavenRepository\maven_jar\org\springframework\spring-core\5.3.8\spring-core-5.3.8.jar;D:\server\MavenRepository\maven_jar\org\springframework\spring-jcl\5.3.8\spring-jcl-5.3.8.jar;D:\server\MavenRepository\maven_jar\com\baomidou\mybatis-plus-boot-starter\3.1.0\mybatis-plus-boot-starter-3.1.0.jar;D:\server\MavenRepository\maven_jar\com\baomidou\mybatis-plus\3.1.0\mybatis-plus-3.1.0.jar;D:\server\MavenRepository\maven_jar\com\baomidou\mybatis-plus-extension\3.1.0\mybatis-plus-extension-3.1.0.jar;D:\server\MavenRepository\maven_jar\com\baomidou\mybatis-plus-core\3.1.0\mybatis-plus-core-3.1.0.jar;D:\server\MavenRepository\maven_jar\com\baomidou\mybatis-plus-annotation\3.1.0\mybatis-plus-annotation-3.1.0.jar;D:\server\MavenRepository\maven_jar\org\mybatis\mybatis\3.5.0\mybatis-3.5.0.jar;D:\server\MavenRepository\maven_jar\com\github\jsqlparser\jsqlparser\1.4\jsqlparser-1.4.jar;D:\server\MavenRepository\maven_jar\org\mybatis\mybatis-spring\2.0.0\mybatis-spring-2.0.0.jar;D:\server\MavenRepository\maven_jar\org\hyperic\sigar\1.6.5.132\sigar-1.6.5.132.jar cn.ch3nnn.adminblog.utils.OSUtils
用户名: mayn
计算机名: DESKTOP-TO0VST1
计算机域名: DESKTOP-TO0VST1
本地ip地址: 192.168.18.234
本地主机名: DESKTOP-TO0VST1
JVM可以使用的总内存: 257425408
JVM可以使用的剩余内存: 250555376
JVM可以使用的处理器个数: 6
Java的运行环境版本: 1.8.0_251
Java的运行环境供应商: Oracle Corporation
Java供应商的URL: http://java.oracle.com/
Java的安装路径: E:\jdk8\jre
Java的虚拟机规范版本: 1.8
Java的虚拟机规范供应商: Oracle Corporation
Java的虚拟机规范名称: Java Virtual Machine Specification
Java的虚拟机实现版本: 25.251-b08
Java的虚拟机实现供应商: Oracle Corporation
Java的虚拟机实现名称: Java HotSpot(TM) 64-Bit Server VM
Java运行时环境规范版本: 1.8
Java运行时环境规范供应商: null
Java运行时环境规范名称: Java Platform API Specification
Java的类格式版本号: 52.0
Java的类路径: E:\jdk8\lib\ant-javafx.jar;E:\jdk8\lib\dt.jar;E:\jdk8\lib\ext\cldrdata.jar;E:\jdk8\lib\ext\localedata.jar;E:\jdk8\lib\javafx-mx.jar;E:\jdk8\lib\jconsole.jar;E:\jdk8\lib\packager.jar;E:\jdk8\lib\sa-jdi.jar;E:\jdk8\lib\tools.jar;C:\Users\mayn\Desktop\adminblog\target\classes;D:\server\MavenRepository\maven_jar\org\springframework\boot\spring-boot-starter-data-jpa\2.5.2\spring-boot-starter-data-jpa-2.5.2.jar;D:\server\MavenRepository\maven_jar\org\springframework\boot\spring-boot-starter-aop\2.5.2\spring-boot-starter-aop-2.5.2.jar;D:\server\MavenRepository\maven_jar\org\springframework\spring-aop\5.3.8\spring-aop-5.3.8.jar;D:\server\MavenRepository\maven_jar\org\aspectj\aspectjweaver\1.9.6\aspectjweaver-1.9.6.jar;D:\server\MavenRepository\maven_jar\org\springframework\boot\spring-boot-starter-jdbc\2.5.2\spring-boot-starter-jdbc-2.5.2.jar;D:\server\MavenRepository\maven_jar\com\zaxxer\HikariCP\4.0.3\HikariCP-4.0.3.jar;D:\server\MavenRepository\maven_jar\org\springframework\spring-jdbc\5.3.8\spring-jdbc-5.3.8.jar;D:\server\MavenRepository\maven_jar\jakarta\transaction\jakarta.transaction-api\1.3.3\jakarta.transaction-api-1.3.3.jar;D:\server\MavenRepository\maven_jar\jakarta\persistence\jakarta.persistence-api\2.2.3\jakarta.persistence-api-2.2.3.jar;D:\server\MavenRepository\maven_jar\org\hibernate\hibernate-core\5.4.32.Final\hibernate-core-5.4.32.Final.jar;D:\server\MavenRepository\maven_jar\org\jboss\logging\jboss-logging\3.4.2.Final\jboss-logging-3.4.2.Final.jar;D:\server\MavenRepository\maven_jar\org\javassist\javassist\3.27.0-GA\javassist-3.27.0-GA.jar;D:\server\MavenRepository\maven_jar\net\bytebuddy\byte-buddy\1.10.22\byte-buddy-1.10.22.jar;D:\server\MavenRepository\maven_jar\antlr\antlr\2.7.7\antlr-2.7.7.jar;D:\server\MavenRepository\maven_jar\org\jboss\jandex\2.2.3.Final\jandex-2.2.3.Final.jar;D:\server\MavenRepository\maven_jar\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;D:\server\MavenRepository\maven_jar\org\dom4j\dom4j\2.1.3\dom4j-2.1.3.jar;D:\server\MavenRepository\maven_jar\org\hibernate\common\hibernate-commons-annotations\5.1.2.Final\hibernate-commons-annotations-5.1.2.Final.jar;D:\server\MavenRepository\maven_jar\org\glassfish\jaxb\jaxb-runtime\2.3.4\jaxb-runtime-2.3.4.jar;D:\server\MavenRepository\maven_jar\org\glassfish\jaxb\txw2\2.3.4\txw2-2.3.4.jar;D:\server\MavenRepository\maven_jar\com\sun\istack\istack-commons-runtime\3.0.12\istack-commons-runtime-3.0.12.jar;D:\server\MavenRepository\maven_jar\com\sun\activation\jakarta.activation\1.2.2\jakarta.activation-1.2.2.jar;D:\server\MavenRepository\maven_jar\org\springframework\data\spring-data-jpa\2.5.2\spring-data-jpa-2.5.2.jar;D:\server\MavenRepository\maven_jar\org\springframework\data\spring-data-commons\2.5.2\spring-data-commons-2.5.2.jar;D:\server\MavenRepository\maven_jar\org\springframework\spring-orm\5.3.8\spring-orm-5.3.8.jar;D:\server\MavenRepository\maven_jar\org\springframework\spring-context\5.3.8\spring-context-5.3.8.jar;D:\server\MavenRepository\maven_jar\org\springframework\spring-tx\5.3.8\spring-tx-5.3.8.jar;D:\server\MavenRepository\maven_jar\org\springframework\spring-beans\5.3.8\spring-beans-5.3.8.jar;D:\server\MavenRepository\maven_jar\org\slf4j\slf4j-api\1.7.31\slf4j-api-1.7.31.jar;D:\server\MavenRepository\maven_jar\org\springframework\spring-aspects\5.3.8\spring-aspects-5.3.8.jar;D:\server\MavenRepository\maven_jar\org\springframework\boot\spring-boot-starter-thymeleaf\2.5.2\spring-boot-starter-thymeleaf-2.5.2.jar;D:\server\MavenRepository\maven_jar\org\springframework\boot\spring-boot-starter\2.5.2\spring-boot-starter-2.5.2.jar;D:\server\MavenRepository\maven_jar\org\springframework\boot\spring-boot-starter-logging\2.5.2\spring-boot-starter-logging-2.5.2.jar;D:\server\MavenRepository\maven_jar\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;D:\server\MavenRepository\maven_jar\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;D:\server\MavenRepository\maven_jar\org\apache\logging\log4j\log4j-to-slf4j\2.14.1\log4j-to-slf4j-2.14.1.jar;D:\server\MavenRepository\maven_jar\org\apache\logging\log4j\log4j-api\2.14.1\log4j-api-2.14.1.jar;D:\server\MavenRepository\maven_jar\org\slf4j\jul-to-slf4j\1.7.31\jul-to-slf4j-1.7.31.jar;D:\server\MavenRepository\maven_jar\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;D:\server\MavenRepository\maven_jar\org\yaml\snakeyaml\1.28\snakeyaml-1.28.jar;D:\server\MavenRepository\maven_jar\org\thymeleaf\thymeleaf-spring5\3.0.12.RELEASE\thymeleaf-spring5-3.0.12.RELEASE.jar;D:\server\MavenRepository\maven_jar\org\thymeleaf\thymeleaf\3.0.12.RELEASE\thymeleaf-3.0.12.RELEASE.jar;D:\server\MavenRepository\maven_jar\org\attoparser\attoparser\2.0.5.RELEASE\attoparser-2.0.5.RELEASE.jar;D:\server\MavenRepository\maven_jar\org\unbescape\unbescape\1.1.6.RELEASE\unbescape-1.1.6.RELEASE.jar;D:\server\MavenRepository\maven_jar\org\thymeleaf\extras\thymeleaf-extras-java8time\3.0.4.RELEASE\thymeleaf-extras-java8time-3.0.4.RELEASE.jar;D:\server\MavenRepository\maven_jar\org\springframework\boot\spring-boot-starter-web\2.5.2\spring-boot-starter-web-2.5.2.jar;D:\server\MavenRepository\maven_jar\org\springframework\boot\spring-boot-starter-json\2.5.2\spring-boot-starter-json-2.5.2.jar;D:\server\MavenRepository\maven_jar\com\fasterxml\jackson\core\jackson-databind\2.12.3\jackson-databind-2.12.3.jar;D:\server\MavenRepository\maven_jar\com\fasterxml\jackson\core\jackson-annotations\2.12.3\jackson-annotations-2.12.3.jar;D:\server\MavenRepository\maven_jar\com\fasterxml\jackson\core\jackson-core\2.12.3\jackson-core-2.12.3.jar;D:\server\MavenRepository\maven_jar\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.12.3\jackson-datatype-jdk8-2.12.3.jar;D:\server\MavenRepository\maven_jar\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.12.3\jackson-datatype-jsr310-2.12.3.jar;D:\server\MavenRepository\maven_jar\com\fasterxml\jackson\module\jackson-module-parameter-names\2.12.3\jackson-module-parameter-names-2.12.3.jar;D:\server\MavenRepository\maven_jar\org\springframework\boot\spring-boot-starter-tomcat\2.5.2\spring-boot-starter-tomcat-2.5.2.jar;D:\server\MavenRepository\maven_jar\org\apache\tomcat\embed\tomcat-embed-core\9.0.48\tomcat-embed-core-9.0.48.jar;D:\server\MavenRepository\maven_jar\org\apache\tomcat\embed\tomcat-embed-el\9.0.48\tomcat-embed-el-9.0.48.jar;D:\server\MavenRepository\maven_jar\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.48\tomcat-embed-websocket-9.0.48.jar;D:\server\MavenRepository\maven_jar\org\springframework\spring-web\5.3.8\spring-web-5.3.8.jar;D:\server\MavenRepository\maven_jar\org\springframework\spring-webmvc\5.3.8\spring-webmvc-5.3.8.jar;D:\server\MavenRepository\maven_jar\org\springframework\spring-expression\5.3.8\spring-expression-5.3.8.jar;D:\server\MavenRepository\maven_jar\org\springframework\boot\spring-boot-devtools\2.5.2\spring-boot-devtools-2.5.2.jar;D:\server\MavenRepository\maven_jar\org\springframework\boot\spring-boot\2.5.2\spring-boot-2.5.2.jar;D:\server\MavenRepository\maven_jar\org\springframework\boot\spring-boot-autoconfigure\2.5.2\spring-boot-autoconfigure-2.5.2.jar;D:\server\MavenRepository\maven_jar\mysql\mysql-connector-java\8.0.25\mysql-connector-java-8.0.25.jar;D:\server\MavenRepository\maven_jar\org\projectlombok\lombok\1.18.20\lombok-1.18.20.jar;D:\server\MavenRepository\maven_jar\jakarta\xml\bind\jakarta.xml.bind-api\2.3.3\jakarta.xml.bind-api-2.3.3.jar;D:\server\MavenRepository\maven_jar\jakarta\activation\jakarta.activation-api\1.2.2\jakarta.activation-api-1.2.2.jar;D:\server\MavenRepository\maven_jar\org\springframework\spring-core\5.3.8\spring-core-5.3.8.jar;D:\server\MavenRepository\maven_jar\org\springframework\spring-jcl\5.3.8\spring-jcl-5.3.8.jar;D:\server\MavenRepository\maven_jar\com\baomidou\mybatis-plus-boot-starter\3.1.0\mybatis-plus-boot-starter-3.1.0.jar;D:\server\MavenRepository\maven_jar\com\baomidou\mybatis-plus\3.1.0\mybatis-plus-3.1.0.jar;D:\server\MavenRepository\maven_jar\com\baomidou\mybatis-plus-extension\3.1.0\mybatis-plus-extension-3.1.0.jar;D:\server\MavenRepository\maven_jar\com\baomidou\mybatis-plus-core\3.1.0\mybatis-plus-core-3.1.0.jar;D:\server\MavenRepository\maven_jar\com\baomidou\mybatis-plus-annotation\3.1.0\mybatis-plus-annotation-3.1.0.jar;D:\server\MavenRepository\maven_jar\org\mybatis\mybatis\3.5.0\mybatis-3.5.0.jar;D:\server\MavenRepository\maven_jar\com\github\jsqlparser\jsqlparser\1.4\jsqlparser-1.4.jar;D:\server\MavenRepository\maven_jar\org\mybatis\mybatis-spring\2.0.0\mybatis-spring-2.0.0.jar;D:\server\MavenRepository\maven_jar\org\hyperic\sigar\1.6.5.132\sigar-1.6.5.132.jar;E:\IntelliJ IDEA 2021.1.3\lib\idea_rt.jar
加载库时搜索的路径列表: E:\jdk8\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;E:\Git\cmd;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Users\mayn\AppData\Local\Microsoft\WindowsApps;;E:\IntelliJ IDEA 2021.1.3\bin;;.
默认的临时文件路径: C:\Users\mayn\AppData\Local\Temp\
一个或多个扩展目录的路径: E:\jdk8\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
操作系统的名称: Windows 10
操作系统的构架: amd64
操作系统的版本: 10.0
文件分隔符: \
路径分隔符: ;
行分隔符:
用户的账户名称: mayn
用户的主目录: C:\Users\mayn
用户的当前工作目录: C:\Users\mayn\Desktop\adminblog
----------------------------------
第1块CPU信息
CPU的总量MHz: 2904
CPU生产商: Intel
CPU类别: Core(TM) i5-9400F CPU @ 2.90GHz
CPU缓存数量: -1
CPU用户使用率: 12.1%
CPU系统使用率: 12.1%
CPU当前等待率: 0.0%
CPU当前错误率: 0.0%
CPU当前空闲率: 75.6%
CPU总的使用率: 24.3%
第2块CPU信息
CPU的总量MHz: 2904
CPU生产商: Intel
CPU类别: Core(TM) i5-9400F CPU @ 2.90GHz
CPU缓存数量: -1
CPU用户使用率: 12.0%
CPU系统使用率: 15.1%
CPU当前等待率: 0.0%
CPU当前错误率: 0.0%
CPU当前空闲率: 72.8%
CPU总的使用率: 27.1%
第3块CPU信息
CPU的总量MHz: 2904
CPU生产商: Intel
CPU类别: Core(TM) i5-9400F CPU @ 2.90GHz
CPU缓存数量: -1
CPU用户使用率: 15.2%
CPU系统使用率: 27.2%
CPU当前等待率: 0.0%
CPU当前错误率: 0.0%
CPU当前空闲率: 57.4%
CPU总的使用率: 42.5%
第4块CPU信息
CPU的总量MHz: 2904
CPU生产商: Intel
CPU类别: Core(TM) i5-9400F CPU @ 2.90GHz
CPU缓存数量: -1
CPU用户使用率: 15.1%
CPU系统使用率: 18.2%
CPU当前等待率: 0.0%
CPU当前错误率: 0.0%
CPU当前空闲率: 66.6%
CPU总的使用率: 33.3%
第5块CPU信息
CPU的总量MHz: 2904
CPU生产商: Intel
CPU类别: Core(TM) i5-9400F CPU @ 2.90GHz
CPU缓存数量: -1
CPU用户使用率: 15.1%
CPU系统使用率: 24.2%
CPU当前等待率: 0.0%
CPU当前错误率: 0.0%
CPU当前空闲率: 60.5%
CPU总的使用率: 39.4%
第6块CPU信息
CPU的总量MHz: 2904
CPU生产商: Intel
CPU类别: Core(TM) i5-9400F CPU @ 2.90GHz
CPU缓存数量: -1
CPU用户使用率: 36.3%
CPU系统使用率: 15.1%
CPU当前等待率: 0.0%
CPU当前错误率: 0.0%
CPU当前空闲率: 48.5%
CPU总的使用率: 51.4%
----------------------------------
内存总量: 16710712K av
当前内存使用量: 11646516K used
当前内存剩余量: 5064196K free
交换区总量: 20900112K av
当前交换区使用量: 18345872K used
当前交换区剩余量: 2554240K free
----------------------------------
操作系统: x64
操作系统CpuEndian(): little
操作系统DataModel(): 64
操作系统的描述: Microsoft
操作系统的卖主: Microsoft
操作系统的卖主名:
操作系统名称:
操作系统卖主类型: ¸É
操作系统的版本号: 10.0
----------------------------------
用户控制台: console
用户host: NT AUTHORITY
当前系统进程表中的用户名: LOCAL SERVICE
用户控制台: console
用户host: NT AUTHORITY
当前系统进程表中的用户名: NETWORK SERVICE
用户控制台: console
用户host: DESKTOP-TO0VST1
当前系统进程表中的用户名: mayn
用户控制台: console
用户host: NT AUTHORITY
当前系统进程表中的用户名: SYSTEM
----------------------------------
分区的盘符名称0
盘符名称: C:\
盘符路径: C:\
盘符标志: 0
盘符类型: NTFS
盘符类型名: local
盘符文件系统类型: 2
C:\总大小: 62913532KB
C:\剩余大小: 11540960KB
C:\可用大小: 11540960KB
C:\已经使用量: 51372572KB
C:\资源的利用率: 82.0%
C:\读出: 438857
C:\写入: 647625
分区的盘符名称1
盘符名称: D:\
盘符路径: D:\
盘符标志: 0
盘符类型: NTFS
盘符类型名: local
盘符文件系统类型: 2
D:\总大小: 145081340KB
D:\剩余大小: 19955384KB
D:\可用大小: 19955384KB
D:\已经使用量: 125125956KB
D:\资源的利用率: 87.0%
D:\读出: 25200
D:\写入: 5835
分区的盘符名称2
盘符名称: E:\
盘符路径: E:\
盘符标志: 0
盘符类型: NTFS
盘符类型名: local
盘符文件系统类型: 2
E:\总大小: 41943036KB
E:\剩余大小: 13228564KB
E:\可用大小: 13228564KB
E:\已经使用量: 28714472KB
E:\资源的利用率: 69.0%
E:\读出: 230831
E:\写入: 14315
分区的盘符名称3
盘符名称: F:\
盘符路径: F:\
盘符标志: 0
盘符类型: NTFS
盘符类型名: local
盘符文件系统类型: 2
F:\总大小: 500105212KB
F:\剩余大小: 169849168KB
F:\可用大小: 169849168KB
F:\已经使用量: 330256044KB
F:\资源的利用率: 67.0%
F:\读出: 19024
F:\写入: 278
----------------------------------
网络设备名: eth0
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
!IFF_UP...skipping getNetInterfaceStat
网络设备名: eth1
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
!IFF_UP...skipping getNetInterfaceStat
网络设备名: eth2
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
!IFF_UP...skipping getNetInterfaceStat
网络设备名: eth3
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
!IFF_UP...skipping getNetInterfaceStat
网络设备名: eth4
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
!IFF_UP...skipping getNetInterfaceStat
网络设备名: eth5
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
!IFF_UP...skipping getNetInterfaceStat
网络设备名: eth6
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
eth6接收的总包裹数:1938243
eth6发送的总包裹数:1035913
eth6接收到的总字节数:2427408146
eth6发送的总字节数:143384287
eth6接收到的错误包数:0
eth6发送数据包时的错误数:1
eth6接收时丢弃的包数:0
eth6发送时丢弃的包数:0
网络设备名: eth7
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
eth7接收的总包裹数:1938243
eth7发送的总包裹数:1035913
eth7接收到的总字节数:2427408146
eth7发送的总字节数:143384287
eth7接收到的错误包数:0
eth7发送数据包时的错误数:1
eth7接收时丢弃的包数:0
eth7发送时丢弃的包数:0
网络设备名: eth8
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
eth8接收的总包裹数:1938243
eth8发送的总包裹数:1035913
eth8接收到的总字节数:2427408146
eth8发送的总字节数:143384287
eth8接收到的错误包数:0
eth8发送数据包时的错误数:1
eth8接收时丢弃的包数:0
eth8发送时丢弃的包数:0
网络设备名: eth9
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
eth9接收的总包裹数:0
eth9发送的总包裹数:0
eth9接收到的总字节数:0
eth9发送的总字节数:0
eth9接收到的错误包数:0
eth9发送数据包时的错误数:0
eth9接收时丢弃的包数:0
eth9发送时丢弃的包数:0
网络设备名: eth10
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
eth10接收的总包裹数:0
eth10发送的总包裹数:0
eth10接收到的总字节数:0
eth10发送的总字节数:0
eth10接收到的错误包数:0
eth10发送数据包时的错误数:0
eth10接收时丢弃的包数:0
eth10发送时丢弃的包数:0
网络设备名: eth11
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
eth11接收的总包裹数:0
eth11发送的总包裹数:0
eth11接收到的总字节数:0
eth11发送的总字节数:0
eth11接收到的错误包数:0
eth11发送数据包时的错误数:0
eth11接收时丢弃的包数:0
eth11发送时丢弃的包数:0
网络设备名: eth12
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
eth12接收的总包裹数:0
eth12发送的总包裹数:0
eth12接收到的总字节数:0
eth12发送的总字节数:0
eth12接收到的错误包数:0
eth12发送数据包时的错误数:0
eth12接收时丢弃的包数:0
eth12发送时丢弃的包数:0
网络设备名: eth13
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
eth13接收的总包裹数:0
eth13发送的总包裹数:0
eth13接收到的总字节数:0
eth13发送的总字节数:0
eth13接收到的错误包数:0
eth13发送数据包时的错误数:0
eth13接收时丢弃的包数:0
eth13发送时丢弃的包数:0
网络设备名: eth14
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
eth14接收的总包裹数:0
eth14发送的总包裹数:0
eth14接收到的总字节数:0
eth14发送的总字节数:0
eth14接收到的错误包数:0
eth14发送数据包时的错误数:0
eth14接收时丢弃的包数:0
eth14发送时丢弃的包数:0
网络设备名: eth15
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
eth15接收的总包裹数:0
eth15发送的总包裹数:0
eth15接收到的总字节数:0
eth15发送的总字节数:0
eth15接收到的错误包数:0
eth15发送数据包时的错误数:0
eth15接收时丢弃的包数:0
eth15发送时丢弃的包数:0
网络设备名: eth16
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
eth16接收的总包裹数:31
eth16发送的总包裹数:3802
eth16接收到的总字节数:2266
eth16发送的总字节数:685926
eth16接收到的错误包数:0
eth16发送数据包时的错误数:0
eth16接收时丢弃的包数:0
eth16发送时丢弃的包数:0
网络设备名: eth17
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
eth17接收的总包裹数:31
eth17发送的总包裹数:3802
eth17接收到的总字节数:2266
eth17发送的总字节数:685926
eth17接收到的错误包数:0
eth17发送数据包时的错误数:0
eth17接收时丢弃的包数:0
eth17发送时丢弃的包数:0
网络设备名: eth18
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
eth18接收的总包裹数:31
eth18发送的总包裹数:3802
eth18接收到的总字节数:2266
eth18发送的总字节数:685926
eth18接收到的错误包数:0
eth18发送数据包时的错误数:0
eth18接收时丢弃的包数:0
eth18发送时丢弃的包数:0
网络设备名: eth19
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
!IFF_UP...skipping getNetInterfaceStat
网络设备名: eth20
IP地址: 192.168.18.234
子网掩码: 255.255.255.0
eth20接收的总包裹数:1938243
eth20发送的总包裹数:1035913
eth20接收到的总字节数:2427408146
eth20发送的总字节数:143384287
eth20接收到的错误包数:0
eth20发送数据包时的错误数:1
eth20接收时丢弃的包数:0
eth20发送时丢弃的包数:0
网络设备名: eth21
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
eth21接收的总包裹数:0
eth21发送的总包裹数:0
eth21接收到的总字节数:0
eth21发送的总字节数:0
eth21接收到的错误包数:0
eth21发送数据包时的错误数:0
eth21接收时丢弃的包数:0
eth21发送时丢弃的包数:0
网络设备名: eth22
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
eth22接收的总包裹数:0
eth22发送的总包裹数:0
eth22接收到的总字节数:0
eth22发送的总字节数:0
eth22接收到的错误包数:0
eth22发送数据包时的错误数:0
eth22接收时丢弃的包数:0
eth22发送时丢弃的包数:0
网络设备名: eth23
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
eth23接收的总包裹数:0
eth23发送的总包裹数:0
eth23接收到的总字节数:0
eth23发送的总字节数:0
eth23接收到的错误包数:0
eth23发送数据包时的错误数:0
eth23接收时丢弃的包数:0
eth23发送时丢弃的包数:0
网络设备名: eth24
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
!IFF_UP...skipping getNetInterfaceStat
网络设备名: eth25
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
!IFF_UP...skipping getNetInterfaceStat
网络设备名: eth26
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
eth26接收的总包裹数:0
eth26发送的总包裹数:0
eth26接收到的总字节数:0
eth26发送的总字节数:0
eth26接收到的错误包数:0
eth26发送数据包时的错误数:0
eth26接收时丢弃的包数:0
eth26发送时丢弃的包数:0
网络设备名: eth27
IP地址: 172.29.192.1
子网掩码: 255.255.240.0
eth27接收的总包裹数:31
eth27发送的总包裹数:3802
eth27接收到的总字节数:2266
eth27发送的总字节数:685926
eth27接收到的错误包数:0
eth27发送数据包时的错误数:0
eth27接收时丢弃的包数:0
eth27发送时丢弃的包数:0
网络设备名: lo0
IP地址: 127.0.0.1
子网掩码: 255.0.0.0
lo0接收的总包裹数:0
lo0发送的总包裹数:0
lo0接收到的总字节数:0
lo0发送的总字节数:0
lo0接收到的错误包数:0
lo0发送数据包时的错误数:0
lo0接收时丢弃的包数:0
lo0发送时丢弃的包数:0
网络设备名: eth28
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
!IFF_UP...skipping getNetInterfaceStat
网络设备名: eth29
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
!IFF_UP...skipping getNetInterfaceStat
网络设备名: eth30
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
!IFF_UP...skipping getNetInterfaceStat
网络设备名: eth31
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
!IFF_UP...skipping getNetInterfaceStat
网络设备名: eth32
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
!IFF_UP...skipping getNetInterfaceStat
网络设备名: eth33
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
!IFF_UP...skipping getNetInterfaceStat
网络设备名: eth34
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
!IFF_UP...skipping getNetInterfaceStat
网络设备名: eth35
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
!IFF_UP...skipping getNetInterfaceStat
网络设备名: eth36
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
!IFF_UP...skipping getNetInterfaceStat
网络设备名: eth37
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
!IFF_UP...skipping getNetInterfaceStat
网络设备名: eth38
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
!IFF_UP...skipping getNetInterfaceStat
网络设备名: eth39
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
!IFF_UP...skipping getNetInterfaceStat
网络设备名: eth40
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
!IFF_UP...skipping getNetInterfaceStat
网络设备名: eth41
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
!IFF_UP...skipping getNetInterfaceStat
网络设备名: eth42
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
!IFF_UP...skipping getNetInterfaceStat
网络设备名: eth43
IP地址: 0.0.0.0
子网掩码: 0.0.0.0
!IFF_UP...skipping getNetInterfaceStat
----------------------------------
eth0IP地址:0.0.0.0
eth0网关广播地址:0.0.0.0
eth0网卡MAC地址:00:FF:FD:89:B6:45
eth0子网掩码:0.0.0.0
eth0网卡描述信息:Netease UU TAP-Win32 Adapter V9.21-WFP Native MAC Layer LightWeight Filter-0000
eth0网卡类型Ethernet
eth1IP地址:0.0.0.0
eth1网关广播地址:0.0.0.0
eth1网卡MAC地址:00:FF:FD:89:B6:45
eth1子网掩码:0.0.0.0
eth1网卡描述信息:Netease UU TAP-Win32 Adapter V9.21-QoS Packet Scheduler-0000
eth1网卡类型Ethernet
eth2IP地址:0.0.0.0
eth2网关广播地址:0.0.0.0
eth2网卡MAC地址:00:FF:FD:89:B6:45
eth2子网掩码:0.0.0.0
eth2网卡描述信息:Netease UU TAP-Win32 Adapter V9.21-WFP 802.3 MAC Layer LightWeight Filter-0000
eth2网卡类型Ethernet
eth3IP地址:0.0.0.0
eth3网关广播地址:0.0.0.0
eth3网卡MAC地址:00:FF:06:C9:26:E3
eth3子网掩码:0.0.0.0
eth3网卡描述信息:TAP-Windows Adapter V9-WFP Native MAC Layer LightWeight Filter-0000
eth3网卡类型Ethernet
eth4IP地址:0.0.0.0
eth4网关广播地址:0.0.0.0
eth4网卡MAC地址:00:FF:06:C9:26:E3
eth4子网掩码:0.0.0.0
eth4网卡描述信息:TAP-Windows Adapter V9-QoS Packet Scheduler-0000
eth4网卡类型Ethernet
eth5IP地址:0.0.0.0
eth5网关广播地址:0.0.0.0
eth5网卡MAC地址:00:FF:06:C9:26:E3
eth5子网掩码:0.0.0.0
eth5网卡描述信息:TAP-Windows Adapter V9-WFP 802.3 MAC Layer LightWeight Filter-0000
eth5网卡类型Ethernet
eth6IP地址:0.0.0.0
eth6网关广播地址:0.0.0.0
eth6网卡MAC地址:40:B0:76:81:CC:5E
eth6子网掩码:0.0.0.0
eth6网卡描述信息:Realtek PCIe GbE Family Controller-WFP Native MAC Layer LightWeight Filter-0000
eth6网卡类型Ethernet
eth7IP地址:0.0.0.0
eth7网关广播地址:0.0.0.0
eth7网卡MAC地址:40:B0:76:81:CC:5E
eth7子网掩码:0.0.0.0
eth7网卡描述信息:Realtek PCIe GbE Family Controller-QoS Packet Scheduler-0000
eth7网卡类型Ethernet
eth8IP地址:0.0.0.0
eth8网关广播地址:0.0.0.0
eth8网卡MAC地址:40:B0:76:81:CC:5E
eth8子网掩码:0.0.0.0
eth8网卡描述信息:Realtek PCIe GbE Family Controller-WFP 802.3 MAC Layer LightWeight Filter-0000
eth8网卡类型Ethernet
eth16IP地址:0.0.0.0
eth16网关广播地址:0.0.0.0
eth16网卡MAC地址:00:15:5D:9A:97:07
eth16子网掩码:0.0.0.0
eth16网卡描述信息:Hyper-V Virtual Ethernet Adapter-WFP Native MAC Layer LightWeight Filter-0000
eth16网卡类型Ethernet
eth17IP地址:0.0.0.0
eth17网关广播地址:0.0.0.0
eth17网卡MAC地址:00:15:5D:9A:97:07
eth17子网掩码:0.0.0.0
eth17网卡描述信息:Hyper-V Virtual Ethernet Adapter-QoS Packet Scheduler-0000
eth17网卡类型Ethernet
eth18IP地址:0.0.0.0
eth18网关广播地址:0.0.0.0
eth18网卡MAC地址:00:15:5D:9A:97:07
eth18子网掩码:0.0.0.0
eth18网卡描述信息:Hyper-V Virtual Ethernet Adapter-WFP 802.3 MAC Layer LightWeight Filter-0000
eth18网卡类型Ethernet
eth20IP地址:192.168.18.234
eth20网关广播地址:192.168.18.255
eth20网卡MAC地址:40:B0:76:81:CC:5E
eth20子网掩码:255.255.255.0
eth20网卡描述信息:Realtek PCIe GbE Family Controller
eth20网卡类型Ethernet
eth24IP地址:0.0.0.0
eth24网关广播地址:0.0.0.0
eth24网卡MAC地址:00:FF:FD:89:B6:45
eth24子网掩码:0.0.0.0
eth24网卡描述信息:Netease UU TAP-Win32 Adapter V9.21
eth24网卡类型Ethernet
eth25IP地址:0.0.0.0
eth25网关广播地址:0.0.0.0
eth25网卡MAC地址:00:FF:06:C9:26:E3
eth25子网掩码:0.0.0.0
eth25网卡描述信息:TAP-Windows Adapter V9
eth25网卡类型Ethernet
eth27IP地址:172.29.192.1
eth27网关广播地址:172.29.207.255
eth27网卡MAC地址:00:15:5D:9A:97:07
eth27子网掩码:255.255.240.0
eth27网卡描述信息:Hyper-V Virtual Ethernet Adapter
eth27网卡类型Ethernet
eth28IP地址:0.0.0.0
eth28网关广播地址:0.0.0.0
eth28网卡MAC地址:E8:4E:06:5A:72:F3
eth28子网掩码:0.0.0.0
eth28网卡描述信息:802.11n USB Wireless LAN Card-WFP Native MAC Layer LightWeight Filter-0000
eth28网卡类型Ethernet
eth29IP地址:0.0.0.0
eth29网关广播地址:0.0.0.0
eth29网卡MAC地址:E8:4E:06:5A:72:F3
eth29子网掩码:0.0.0.0
eth29网卡描述信息:802.11n USB Wireless LAN Card-Virtual WiFi Filter Driver-0000
eth29网卡类型Ethernet
eth30IP地址:0.0.0.0
eth30网关广播地址:0.0.0.0
eth30网卡MAC地址:E8:4E:06:5A:72:F3
eth30子网掩码:0.0.0.0
eth30网卡描述信息:802.11n USB Wireless LAN Card-Native WiFi Filter Driver-0000
eth30网卡类型Ethernet
eth31IP地址:0.0.0.0
eth31网关广播地址:0.0.0.0
eth31网卡MAC地址:E8:4E:06:5A:72:F3
eth31子网掩码:0.0.0.0
eth31网卡描述信息:802.11n USB Wireless LAN Card-QoS Packet Scheduler-0000
eth31网卡类型Ethernet
eth32IP地址:0.0.0.0
eth32网关广播地址:0.0.0.0
eth32网卡MAC地址:E8:4E:06:5A:72:F3
eth32子网掩码:0.0.0.0
eth32网卡描述信息:802.11n USB Wireless LAN Card-WFP 802.3 MAC Layer LightWeight Filter-0000
eth32网卡类型Ethernet
eth33IP地址:0.0.0.0
eth33网关广播地址:0.0.0.0
eth33网卡MAC地址:E8:4E:06:5A:72:F5
eth33子网掩码:0.0.0.0
eth33网卡描述信息:Microsoft Wi-Fi Direct Virtual Adapter-WFP Native MAC Layer LightWeight Filter-0000
eth33网卡类型Ethernet
eth34IP地址:0.0.0.0
eth34网关广播地址:0.0.0.0
eth34网卡MAC地址:E8:4E:06:5A:72:F5
eth34子网掩码:0.0.0.0
eth34网卡描述信息:Microsoft Wi-Fi Direct Virtual Adapter-Native WiFi Filter Driver-0000
eth34网卡类型Ethernet
eth35IP地址:0.0.0.0
eth35网关广播地址:0.0.0.0
eth35网卡MAC地址:E8:4E:06:5A:72:F5
eth35子网掩码:0.0.0.0
eth35网卡描述信息:Microsoft Wi-Fi Direct Virtual Adapter-QoS Packet Scheduler-0000
eth35网卡类型Ethernet
eth36IP地址:0.0.0.0
eth36网关广播地址:0.0.0.0
eth36网卡MAC地址:E8:4E:06:5A:72:F5
eth36子网掩码:0.0.0.0
eth36网卡描述信息:Microsoft Wi-Fi Direct Virtual Adapter-WFP 802.3 MAC Layer LightWeight Filter-0000
eth36网卡类型Ethernet
eth37IP地址:0.0.0.0
eth37网关广播地址:0.0.0.0
eth37网卡MAC地址:E8:4E:06:5A:72:F6
eth37子网掩码:0.0.0.0
eth37网卡描述信息:Microsoft Wi-Fi Direct Virtual Adapter #2-WFP Native MAC Layer LightWeight Filter-0000
eth37网卡类型Ethernet
eth38IP地址:0.0.0.0
eth38网关广播地址:0.0.0.0
eth38网卡MAC地址:E8:4E:06:5A:72:F6
eth38子网掩码:0.0.0.0
eth38网卡描述信息:Microsoft Wi-Fi Direct Virtual Adapter #2-Native WiFi Filter Driver-0000
eth38网卡类型Ethernet
eth39IP地址:0.0.0.0
eth39网关广播地址:0.0.0.0
eth39网卡MAC地址:E8:4E:06:5A:72:F6
eth39子网掩码:0.0.0.0
eth39网卡描述信息:Microsoft Wi-Fi Direct Virtual Adapter #2-QoS Packet Scheduler-0000
eth39网卡类型Ethernet
eth40IP地址:0.0.0.0
eth40网关广播地址:0.0.0.0
eth40网卡MAC地址:E8:4E:06:5A:72:F6
eth40子网掩码:0.0.0.0
eth40网卡描述信息:Microsoft Wi-Fi Direct Virtual Adapter #2-WFP 802.3 MAC Layer LightWeight Filter-0000
eth40网卡类型Ethernet
eth41IP地址:0.0.0.0
eth41网关广播地址:0.0.0.0
eth41网卡MAC地址:E8:4E:06:5A:72:F3
eth41子网掩码:0.0.0.0
eth41网卡描述信息:802.11n USB Wireless LAN Card
eth41网卡类型Ethernet
eth42IP地址:0.0.0.0
eth42网关广播地址:0.0.0.0
eth42网卡MAC地址:E8:4E:06:5A:72:F5
eth42子网掩码:0.0.0.0
eth42网卡描述信息:Microsoft Wi-Fi Direct Virtual Adapter
eth42网卡类型Ethernet
eth43IP地址:0.0.0.0
eth43网关广播地址:0.0.0.0
eth43网卡MAC地址:E8:4E:06:5A:72:F6
eth43子网掩码:0.0.0.0
eth43网卡描述信息:Microsoft Wi-Fi Direct Virtual Adapter #2
eth43网卡类型Ethernet
----------------------------------
进程已结束,退出代码为 0
使用sigar项目启动报错
项目中使用了sigar来监测cpu的使用情况,在项目启动时,报错如下
INFO 2019-12-30 12:17:45.122 [kg.apc.p] (): Binding UDP to 4444
INFO 2019-12-30 12:17:45.155 [kg.apc.p] (): Binding TCP to 4444
INFO 2019-12-30 12:17:45.157 [kg.apc.p] (): JP@GC Agent v2.2.3 started
INFO 2019-12-30 12:18:59.180 [kg.apc.p] (): Accepting new TCP connection
INFO 2019-12-30 12:18:59.184 [kg.apc.p] (): Yep, we received the 'test' command
INFO 2019-12-30 12:18:59.187 [kg.apc.p] (): Starting measures: memory: cpu:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000010014ed4, pid=19028, tid=3160
#
# JRE version: Java(TM) SE Runtime Environment (11.0.4+10) (build 11.0.4+10-LTS)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (11.0.4+10-LTS, mixed mode, tiered, compressed oops, g1 gc, windows-amd64)
# Problematic frame:
# C [sigar-amd64-winnt.dll+0x14ed4]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# E:\\hs_err_pid19028.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
后续再次排查发现为jdk版本问题,较高版本的jdk如1.8_251+和sigar-amd64-winnt.dll不匹配,将jdk版本降低至1.8_241后启动成功
jdk历史版本下载链接