Solved

finding the number of process running ,cpu usage and memory usage

Posted on 2004-04-14
4
297 Views
Last Modified: 2010-03-31
hi,
         i am creating an application which is used to monitor the all the PC in a LAN . its a application running on the server,it will monitor the ideal time, cpu usage,memory usage, ports ect.

but i am having some trouble here i want to know the number of process running ,process name, process ID . but i dont know where to find it and send it to the server from the client.
these application is running under win98 ,2000,XP
so i need how java can be used in finding the process running on the client ,memory usage and cpu usage.
plz send me the details of finding it
bye
0
Comment
Question by:deeppra
4 Comments
 
LVL 9

Accepted Solution

by:
mmuruganandam earned 50 total points
ID: 10821110
Java can't help you in this case.

You have use a native call to get those information.
There is no API support for reading processes, cpu in Java.


Regards,
Muruga
0
 
LVL 5

Author Comment

by:deeppra
ID: 10839088
ok fine,
        there is an exe or com file in the c:\windows\system32 called tasklist in the winXP
fine u run the file using the dos promt we can get the list of process at that instance, so i can run this using exec method in java runtime lib and direct the output to a file and send the details to the server.
This will work fine in the Win XP but i dont know how to find the process in Win 98.
so tell me any common idea which will work both in Xp and 98.
if u know how to find out using C then  u give me the code and help me.

i also want a program that will take the printscreen and save it in a file when i execute the program.

thanks
0

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question