删除 无用打印

back_recharge
lvxinran 2021-02-01 16:52:17 +08:00
parent 5ed63868e5
commit 3c24ef97fc
1 changed files with 1 additions and 13 deletions

View File

@ -154,9 +154,6 @@ public class MinuteTask extends Thread {
LOGGER.error("Exception::=>{}",e.toString());
}
directMemoryGet();//打印堆外内存
LOGGER.info("MinuteTask end...");
} catch (Exception e) {
LOGGER.error("e",e);
@ -254,16 +251,7 @@ public class MinuteTask extends Thread {
}
}
public void directMemoryGet(){
Field field = ReflectionUtils.findField(PlatformDependent.class,"DIRECT_MEMORY_COUNTER");
field.setAccessible(true);
try {
AtomicLong direct = (AtomicLong)field.get(PlatformDependent.class);
LOGGER.info("directMemoryGet 堆外大小=>{}", direct.get());
} catch (IllegalAccessException e) {
e.printStackTrace();
}
}
}