删除 无用打印
parent
5ed63868e5
commit
3c24ef97fc
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue