Java/기본
[java] cpu, memory usage monitoring sample
How do I monitor the computer's CPU, memory usage in Java? java api를 확인해보면 아래 인터페이스를 확인할 수 있습니다. https://docs.oracle.com/javase/7/docs/jre/api/management/extension/com/sun/management/OperatingSystemMXBean.html OperatingSystemMXBean (Monitoring and Management Interface for the Java Platform ) getProcessCpuLoad double getProcessCpuLoad() Returns the "recent cpu usage" for the Java Virtual Machine ..
2019. 10. 20. 22:36
최근댓글