Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
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…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

867 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now