This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Observer for JVM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Observer for JVM" Watch "Observer for JVM" New topic

Observer for JVM

James Gordon
Ranch Hand

Joined: Aug 09, 2002
Posts: 106

Under the J2EE environment, is it possible for us to create something
like an observer for the JVM process?

What I intend to do is to send out some notifications if the JVM would ever
crash, especially in the production environment.

Currently, what I have in mind is just a java process which would check
the existance of the JVM process on a scheduled intervals.

Is there a better way to do so?

Please advise.

Thanks in advance.
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30076

Take a look at JMX (Java Management Extensions.) It is designed for monitoring.

You could probably get away with a cron job. I don't know enough about JMX to know the advantages.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
It is sorta covered in the JavaRanch Style Guide.
subject: Observer for JVM
Similar Threads
HashMap - in-memory caching - multi-threaded environment ?
Stopping and Restarting the jvm
Refresh the view
How to keep clients up-to-date?
Confused with MVC