Solved

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

Posted on 2004-04-14
4
298 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

730 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