giribt / jvmtop

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

reports incorrect cpu usage when running on multi core server #51

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Before submitting a bug report, please check the FAQ:
http://code.google.com/p/jvmtop/wiki/FAQ

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of jvmtop are you using? On what operating system?

Please post the output of the following commands:
java -version
echo $JAVA_HOME  (for unix/linux systems)
echo %JAVA_HOME% (for windows)

Please provide any additional information below.

Original issue reported on code.google.com by markshei...@gmail.com on 27 May 2014 at 8:32

GoogleCodeExporter commented 8 years ago
run on multi core cpu.
cpu usage should be total for all cpu's. only seeing total for one cpu.
 JvmTop 0.8.0 alpha.
java version 1.7

Original comment by markshei...@gmail.com on 27 May 2014 at 8:34

GoogleCodeExporter commented 8 years ago
This is not an error, but a question of how 100% CPU usage is defined.
IMHO, this is a matter of style and taste.

Some applications define "100% CPU" as utilizing all cores (which jvmtop also 
does).
You prefer default top-style which defines CPU usage as per-core.

The best thing would be to be able to configure this definition (which top also 
allows).
Logging as enhancement, patches are welcome.

Original comment by patric.r...@gmail.com on 18 Aug 2014 at 3:29

GoogleCodeExporter commented 8 years ago
Comparison of jvmtop cpu data vs top cpu data for same process. Note that 
jvmtop is taking sample nearly every second whereas top samples are once every 
60 seconds top command looks like:
top -b -d 60 >> cpu.txt

Original comment by markshei...@gmail.com on 20 Aug 2014 at 7:09

Attachments: