Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Monitoring Java Programs

 
ind sakthi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm running several stand-alone java programs as batch files, each doing a specific job. I want to monitor from a centralized place that all are running or not. Any suggestions how do I do it?

Thanks in advance,

Rgds,
indgsk
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Welcome to JavaRanch!

We have a strict policy on display names, which must be a real first and last name with a space between.

Please go here and fix your display name up, pronto. Thanks, pardner!
 
ind sakthi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Done. Actually ind are the initials.

Thanks and Regards,
Sakthi
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15485
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A few years ago I made something like this myself. I wrote a class that started a thread to listen on a TCP/IP port. Each of the processes to be monitored started this thread (each using a different TCP/IP port, ofcourse). The monitoring program could connect to that port and send some simple commands (with a very small application protocol that I invented myself) to see if the program was running and to get some statistics.

If I'd have to do something like that now, I'd probably use JConsole and program a few MBeans into my application. JConsole is a tool added in Java 5.0 to monitor applications: Using JConsole to Monitor Applications.
[ November 09, 2006: Message edited by: Jesper Young ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic