zcwslnh / javamelody

Automatically exported from code.google.com/p/javamelody
0 stars 0 forks source link

don't understand the CPU status. #63

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Check the CPU % in monitoring
2.
3.

What is the expected output? What do you see instead?
CPU % should be always number, and less than 100. But it shows 500, and more, 
and follow by m. What's the meaning of "m" here?

What version of the product are you using? On what application server, JDK,
operating system?

Solaris 10, Apache-tomcat.6.0.29, javamelody-1.21.0.jar, jrobin-1.5.9.jar

Please provide any additional information below.
See the attach pic.

Original issue reported on code.google.com by OZbillw...@gmail.com on 15 Nov 2010 at 1:07

Attachments:

GoogleCodeExporter commented 9 years ago
In all the graphics, "m" is for milli (1 / 1000), "k" is for kilo/thousands, 
"M" is for mega/millions and "G" is for giga/billions.

So if "% cpu" is 500m for a minute, then "% cpu" is also 500/1000.
That is to say that 0,5% of cpu was used for this minute (we could round it to 
0% cpu).

Original comment by evernat@free.fr on 15 Nov 2010 at 9:32

GoogleCodeExporter commented 9 years ago
I understand now, thanks.

But that's not good idea for my boss, right? In fact We don't care of 500m 
(0.5%) CPU usage, no one care. Especially when show the pic in report, it will 
make others confused that the first feeling is, there are so high CPU 
frequently. 

So could you please let me know how can display the CPU usage between 0 ~ 100%?

Original comment by OZbillw...@gmail.com on 16 Nov 2010 at 1:39

GoogleCodeExporter commented 9 years ago
If your application is really used and if you wait a few hours or a few days, 
you will see that values in "% cpu" will have a range between 0 and 10 or 
between 0 and 80 for example. And the units in the graphic will be 
automatically displayed without "m", because at some point values of "% cpu" 
will be higher than 1%.

So your only problem at the moment is that your application is not really used.

Original comment by evernat@free.fr on 16 Nov 2010 at 9:46