Solved

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

Posted on 2004-04-14
4
304 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

691 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