• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 223
  • 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

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

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