Pages: [1]   Go Down
Author Topic: How can I monitor if a specific Java program is running or not? (Windows.)  (Read 305 times)
0 Members and 2 Guests are viewing this topic.
GunnarHovmark
Newbie
*

Karma: 0
Offline Offline

Posts: 4


View Profile
« on: September 27, 2011, 11:53:51 AM »

I have a number of Java programs that must be active for my system to work, but I can't figure out an easy way to monitor if a specific Java program is running or not. Can somebody help me?
Thanks in advance.
Logged

alumbreras
Sr. Member
****

Karma: 5
Offline Offline

Posts: 108


View Profile
« Reply #1 on: September 27, 2011, 12:22:22 PM »

Hi GunnarHovmark,

If your OS is linux you can do with the next module:
Code:
module_exec ps -Af | grep process_name | grep -v "grep" | wc -l

in windows i guess that you can do it but i don't know.

thanks
Logged

GunnarHovmark
Newbie
*

Karma: 0
Offline Offline

Posts: 4


View Profile
« Reply #2 on: September 29, 2011, 02:07:18 PM »

I guess the most similar thing to that in Windows would be to check what processes I have running, but there I can only see if Java is running or not. I can't figure out a way (at least not an easy way) to see what's running inside the Java virtual machine.
Logged

daniels
Smart member
*****

Karma: 19
Offline Offline

Posts: 205



View Profile
« Reply #3 on: October 27, 2011, 03:33:44 PM »

I use jps in linux to know wich jvm I want to monitor... I think this could work in windows too:

http://download.oracle.com/javase/1.5.0/docs/tooldocs/share/jps.html

I hope this helps.

Regards.
Logged

Pages: [1]   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST