Solved

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

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
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…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

758 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

21 Experts available now in Live!

Get 1:1 Help Now