Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to monitor process in Java

807589Jun 24 2008 — edited Jun 24 2008

Dear All,



I am developing an application to monitor an external Java application.


My application will start an external java application.



I can start external Java application from my monitoring application.


Now I want to check that the external application is running previously or not.


If it is running previously, then my application will do nothing.


But if it is aborted normaly or abnormaly, my monitoring application will run it.


How to check if external application is runing or not.


Another thing I want to know that can we check arguments given to that external process.


As I am using for monitoring Java application on Windows, Windows Task Manager is showing only java.exe not the class name passed


as argument.



Can we check it?

Note: I am using Apache Tomcat on same machine.
So there will be one java.exe in Task Manager all the time.

Waiting for your response.


Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 22 2008
Added on Jun 24 2008
7 comments
330 views