• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: determining what instances are running on server?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: determining what instances are running on server?
      • From: Giorgio Valoti <email@hidden>
References: 
 >determining what instances are running on server? (From: "Robert A. Decker" <email@hidden>)

  • Prev by Date: determining what instances are running on server?
  • Next by Date: image upload applet
  • Previous by thread: determining what instances are running on server?
  • Next by thread: Re: determining what instances are running on server?
  • Index(es):
    • Date
    • Thread