Hi,
i just downloaded javasysmon and tried to use it in my multi-threaded
java app. code here:
https://gist.github.com/58a009cd489e6b6a30b0
and this is the output:
OS name: Mac OS X 10.6.3 Current PID: 89449
Number of CPUs: 8 CPU frequency: 2260 MHz
RAM total: 6144Mb free: 1760Mb SWAP total: 5120Mb free: 664Mb
Sampling CPU usage...
CPU Usage: 0.47382122
OS name: Mac OS X 10.6.3 Current PID: 89449
Number of CPUs: 8 CPU frequency: 2260 MHz
RAM total: 6144Mb free: 1272Mb SWAP total: 5120Mb free: 664Mb
Sampling CPU usage...
CPU Usage: 0.4680109
OS name: Mac OS X 10.6.3 Current PID: 89449
Number of CPUs: 8 CPU frequency: 2260 MHz
RAM total: 6144Mb free: 894Mb SWAP total: 5120Mb free: 664Mb
Sampling CPU usage...
CPU Usage: 0.46426386
interesting is the cpu usage because according to top I use between
500% and 600% on my 8-core machine (Mac Pro 8-core, MacOSX 10.6, Java
1.6.0_20). It is quite the discrepancy. I have a hyperthreaded CPU, so
it shows up as 16 cores but 0.46426386 from 16 are still not
500-600% :/
Any ideas?
Thanks in advance.
Best,
Thomas