getting cpu speed and physical ram

hello,
is there a way to get the exact cpu-speed and the amount of physical ram of a client-machine?

all i found was
Runtime.getRuntime().availableProcessors()
which is just the number of cpus/cores.

and
Runtime.getRuntime().maxMemory()
which is just the max-heap.

if it is not possible with java alone, are there native libraries that provide this information?

thanks!

If you aren’t writing some kind of system monitor software, that kind of information isn’t really interesting.

Max heap is all you got and cpu speed… well, there is speed step, different architectures with very different performance at the same clock speed, and there are also asynchronous architectures (w/o any clock speed whatsoever).

well, the reason i would need the exact information, is to make a survey about the computers our clients have.

There’s the System.getProperties().list(System.out) that will retrieve ALL properties available to Java. :smiley:


public class PrintEnv {
  public static void main(String[] args) {
    for(String key : System.getenv().keySet()) {
      System.out.println(key + " - " + System.getenv().get(key));
    }
  }
}

is slightly more interesting.

PROCESSOR_REVISION
PROCESSOR_IDENTIFIER

but that might only be on windows, anyways I agree with oNyx. even if you know the Ghz they might have slow memory in there. I’d opt with ‘auto calibration of video quality settings’ and steal the data off that.

ps. mind you it’s bad stealing info and not telling so :-*

thanks a lot guys!

who said, i’m not telling them?

How many people know what IE sends to my server with every click on my site?

Cas :slight_smile:

[quote=“Mr_Light,post:5,topic:30736”]
That’s only when it’s sensitive data, your processor speed is hardly sensitive!!!

Those system properties are not standard properties, so I wouldn’t rely on them. They might not work on anything except Windows + Some Specific Sun JRE.