Greetings All,
This mail is slightly out of the J2EE context. I am want to write a custom Java monitoring agent for applications/processes running on windows. I need stuff like PID, memory usage (basically the Task Manager stuff)Is there an available API for that? Or do I need to write custom JNI code to access the same through Win32 libraries?
TIA.
Saby.
-
Monitoring Windows processes from Java (3 messages)
- Posted by: sabyasachi chakravarty
- Posted on: May 31 2004 12:18 EDT
Threaded Messages (3)
- Monitoring Windows processes from Java by Joe Attardi on June 01 2004 17:15 EDT
- Monitoring Windows processes from Java by Kunal Pole on June 04 2004 01:38 EDT
- Monitoring Windows processes from Java by Yogendrababu Venkatapathy on May 24 2005 02:38 EDT
-
Monitoring Windows processes from Java[ Go to top ]
- Posted by: Joe Attardi
- Posted on: June 01 2004 17:15 EDT
- in response to sabyasachi chakravarty
Hi Saby,
There is no pure Java library that I know of to do that stuff. There probably isn't one, since that would kill the "Write Once, Run Anywhere" philosophy of Java, right?
So yes, you'll have to use JNI. The good news is, however, that the Windows API calls to get information about running processes is pretty straightforward.
Joe -
Monitoring Windows processes from Java[ Go to top ]
- Posted by: Kunal Pole
- Posted on: June 04 2004 01:38 EDT
- in response to sabyasachi chakravarty
Try Windows Management Instrumentation
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/scripting_api_for_wmi.asp
You will need to use JNI. -
Monitoring Windows processes from Java[ Go to top ]
- Posted by: Yogendrababu Venkatapathy
- Posted on: May 24 2005 02:38 EDT
- in response to sabyasachi chakravarty
Applications Manager supports monitoring process running in a remote Windows machine
For more info
http://manageengine.adventnet.com/products/applications_manager/windows-monitoring.html
http://manageengine.adventnet.com/products/applications_manager/help/monitors/system-resource-monitoring.html
The product is free to monitor upto 10 windows machines
--Yoge