5 Replies Latest reply on May 18, 2006 11:22 AM by vignesh vignesh

    Server Info listThreadCpuUtilization();

    vignesh vignesh Newbie

      I'm using ServerInfo listThreadCpuUtilization() (the "Total" value) to calculate the %CPU utilization of the Jboss server. I'm also taking in to account the no of CPUs while calculating this value. The problem is, I'm getting absurd values for CPU usage like 170% etc.

      The formula I'm using is:

      (Total CPU usage of all threads in millisecs in elapsed time interval / (elapsed time interval in milliseconds * no of cpus)) * 100

      Is the "Total" thread cpu utilization value from SeverInfo accurate enough to calculate %CPU utilization of the Jboss process?

      Environment:
      -------------------

      OS verison: fedora core (2.6.11-1.1369_FC4smp #1 SMP Thu Jun 2 23:08:39 EDT 2005 i686 i686 i386 GNU/Linux)

      Jboss Version: 4.0.3SP1

      I also read some Jira comment that --> "I don't think this (ServerInfo) MBean is working correctly on Linux 2.6 kernels with the NPTL." . Could the inaccuracy be because of the 2.6 kernel that i'm using?

      I'm trying to get this tested out on Solaris.