Re: determining what instances are running on server?
Re: determining what instances are running on server?
- Subject: Re: determining what instances are running on server?
- From: Giorgio Valoti <email@hidden>
- Date: Sat, 16 Aug 2003 09:02:08 +0200
On Venerdl, ago 15, 2003, at 20:11 Europe/Rome, Art Isbell wrote:
On Friday, August 15, 2003, at 07:11 AM, Robert A. Decker wrote:
And related to this,
anyone have a line of code that can be put in Application that will
print
the pid out to the log file at launch, or even better, include the
pid in
the logfile name?
Begin forwarded message:
From: email@hidden
Date: Fri Jun 27, 2003 2:10:40 AM Pacific/Honolulu
To: Dan <email@hidden>
Cc: email@hidden
Subject: Re: Which process is which
I solve this problem by writing the process number in the log file.
Here is the code I add to the constructor of my Application class:
NSLog.err.appendln(name() + " version " + version() + ", port = " +
port() + ", pid = " + System.getProperty("com.webobjects.pid"));
The name and port methods are inherited from WOApplication. The
version
method takes the application version from the application bundle. This
works well on Mac OS X and Solaris. I don't know about Windows.
Shouldn't this only work with 5.2? AFAIK, the com.webobjects.pid is not
present in earlier releases, but I could be wrong... It's just 9 AM ;-)
--
Giorgio Valoti
-------------
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.