• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 224
  • Last Modified:

Getting CPU and RAM

Hi All,

How can i get the CPU clock and RAM for the server and client machine?
I am quite new to java / jsp, any ideas for how to get those information? thanks a lot!

0
orbulat
Asked:
orbulat
  • 2
2 Solutions
 
TimYatesCommented:
you can't for the client

for the server, you would have to write a library in C, C++ or similar, and then call it with JNI

Or, find a standalone console app which does it for you, invoke it with Runtime.exec() and read the text it returns...

Tim
0
 
TimYatesCommented:
>> http://mindprod.com/jgloss/time.html

I think he meant CPU clock speed, not current time or a timer...
0
 
orbulatAuthor Commented:
thx a lot

yes, i think it's not ok for detecting such information from client, but just ask to see if i can get any surprises :-p

so for getting server's cpu / ram, any examples that i can follow? because i google for a while, i couldn't find sth. suitable for me
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now