#47 Alert for app server crash

1.5 Release
closed-fixed
General (72)
5
2006-10-02
2005-10-07
No

Some info from a thread in JMX forum:

> I’d like my remote apps to generate a heartbeat so I
can monitor when
> they crash. However, am I right in thinking that the
rmi JMX connector
> incorporates a heartbeat anyway?

Yes. If your connection to a remote MBeanServer breaks
(because the
application crashed or because the network failed) then
you will get a
JMXConnectionNotification.FAILED if you added a
listener using
JMXConnector.addConnectionNotificationListener. This
happens even if
you are not doing anything on the connection. A
heartbeat thread
periodically attempts to ping the server, with a
default period of one
minute that you can change by adding a millisecond
value for the key
"jmx.remote.x.client.connection.check.period" in the
Map you provide to
JMXConnectorFactory.connect.

If the remote application crashes and you have any
listeners registered
with its MBeans, then in fact this notification will be
immediate.

Éamonn McManus JMX Spec Lead

Discussion

  • Rakesh Kalra

    Rakesh Kalra - 2005-10-07
    • assigned_to: nobody --> rkalra
     
  • Rakesh Kalra

    Rakesh Kalra - 2005-10-26
    • milestone: --> 1.5 Release
     
  • Rakesh Kalra

    Rakesh Kalra - 2006-10-02
    • status: open --> closed-fixed
     
  • Rakesh Kalra

    Rakesh Kalra - 2006-10-02

    Logged In: YES
    user_id=1058292

    The application down alert is available as of version
    1.5 beta 2.

     

Log in to post a comment.