4 Replies Latest reply: Nov 9, 2009 12:28 PM by 791266 RSS

    CPU usage: Java 1.6, Windows, jConsole

    416044
      Java 1.6 has a new method to get the CPU usage:
      java.lang.management.ManagementFactory.getOperatingSystemMXBean().getSystemLoadAverage()
      Unfortunately, it doesn't work on Windows (result = -1).

      The Java 1.6 jConsole tool shows CPU usage on Windows. Is jConsole using another API?