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: Art Isbell <email@hidden>
- Date: Fri, 15 Aug 2003 08:11:49 -1000
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.
Serge
Aloha,
Art
_______________________________________________
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.