users
[Top] [All Lists]

RE: [cinjug-users] Displaying which JVM in a cluster.

To: <users@xxxxxxxxxx>
Subject: RE: [cinjug-users] Displaying which JVM in a cluster.
From: "Arnett, Matt" <Matt.Arnett@xxxxxxxxxx>
Date: Fri, 17 Aug 2007 15:34:31 -0400
Delivered-to: mailing list users@xxxxxxxxxx
Mailing-list: contact users-help@xxxxxxxxxx; run by ezmlm
Thread-index: AcfhA9VnN1Lpy/8+SXC9ghujx/sCzAAAIB+A
Thread-topic: [cinjug-users] Displaying which JVM in a cluster.

We added system properties (-Dserver.dns=myServer1 -Dserver.port=7001) to the java command line in the startup scripts for each app server and then access these through code:

String dns = System.getProperty(“server.dns”);

String port = System.getProperty(“server.port”);


From: Adam Schaible [mailto:schaible_adam@xxxxxxxxx]
Sent: Friday, August 17, 2007 3:21 PM
To: ENapier@xxxxxxxxxxxxxxxx; users@xxxxxxxxxx
Subject: Re: [cinjug-users] Displaying which JVM in a cluster.

 

There's a class called VMID - I've not used it that much but it may be helpeful - It's in the RMI package (I think)

 

Adam Schaible

 

----- Original Message ----
From: "ENapier@xxxxxxxxxxxxxxxx" <ENapier@xxxxxxxxxxxxxxxx>
To: users@xxxxxxxxxx
Sent: Friday, August 17, 2007 3:14:05 PM
Subject: [cinjug-users] Displaying which JVM in a cluster.

Hi all,

We've got a clustered environment of two physical machines, each with two JVMs. Mirroring and magic dust yields a total of four identical JVMs and application trees. Same URL, different ports, but that's hidden under the covers.

Occasionally we (the developers) find ourselves wanting to know which JVM is providing a particular instance of an app. Does anybody know of any way we can retrieve an ID, port designation, etc to let us know this information?

Thanx,
Ed Napier
Senior IT Specialist
Shared Services - Web
UNIFI Information Technology
513-595-2451

 

 


Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.


This e-mail transmission contains information that is intended to be confidential and privileged. If you receive this e-mail and you are not a named addressee you are hereby notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so is prohibited and may be unlawful. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please delete and otherwise erase it and any attachments from your computer system. Your assistance in correcting this error is appreciated.
<Prev in Thread] Current Thread [Next in Thread>